ExplicitContentFilterLevel
Represents Discord's explicit_content filter level.
Attributes
str
The default name of the explicit content filter level.
int
The Discord side identifier value of the explicit_content filter level.
Class Attributes
str
= 'Undefined'
The default name of the explicit content filter levels.
Stores the predefined explicit_content filter levels. This container is accessed when translating a Discord side identifier of a explicit_content filter level. The identifier value is used as a key to get it's wrapper side representation.
type
= int
The verification filter levels' values' type.
Every predefined explicit content filter level is also stored as a class attribute:
Class attribute name | name | value |
---|---|---|
disabled | disabled | 0 |
no_role | no_role | 1 |
everyone | everyone | 2 |
Methods
(value, name)
__init__Creates a new preinstanced instance.
Parameter | Type | Description |
---|---|---|
value |
| The value of the preinstanced object. |
name |
| The object's name. |
(value)
getReturns the value's representation. If the value is already preinstanced, returns that, else creates a new object.
Parameter | Type | Description |
---|---|---|
value |
| The value to get it's representation. |
Returns
obj_ : PreinstancedBase
(value)
_from_valueCreates a new preinstanced object from the given value.
Parameter | Type | Description |
---|---|---|
value |
| The value what has no representation yet. |
Returns
self : PreinstancedBase
The created object.
()
__eq__Returns whether self's value equals to the other object's.
()
__ge__Returns whether self's value is greater or equal to the other object's.
()
__getattr__Drops a rich attribute error.
()
__gt__Returns whether self's value is greater than the other object's.
()
__hash__Returns the hash of the preinstanced object.
()
__le__Returns whether self's value is less or equal to the other object's.
()
__lt__Returns whether self's value is less than the other object's.
()
__ne__Returns whether self's not equals to the other object's.
()
__repr__Returns the representation of the preinstanced object.