Callables.without_names()

without_names(names: List[str], sensitivity: bool = True) → Callables

Adds a filter to get callables that that don't have the specified names. Returns a filtered Callables child object. This method can be called on all Callables child classes: Functions and Modifiers.

To get the callables without a specified name, refer to Callables.without_name().

To filter given a list of names, refer to Callables.with_one_of_the_names().

Functions Example

from glider import *

def query():
  # Retrieve all functions that are not named `_msgSender` and `_msgData`
  functions = Functions().without_names(["_msgSender", "_msgData"]).exec(100)

  # Return the first five functions
  return functions[:5]

Output:

Modifiers Example

from glider import *

def query():
  # Retrieve the modifiers that are not named `onlyOwner` and `onlyMinter`
  modifiers = Modifiers().without_names(["onlyOwner", "onlyMinter"]).exec(100)

  # Return the first five modifiers
  return modifiers[:5]

Output:

Last updated