VideoQualityMode
Represents a voice channel's video quality mode.
Attributes
str
The name of the video quality mode.
int
The identifier value the video quality mode.
Class Attributes
str
= 'UNDEFINED'
The default name of the video quality modes.
Stores the predefined VideoQualityMode
-s. These can be accessed with their value
as key.
type
= int
The video quality modes' values' type.
Every predefined video quality mode can be accessed as class attribute as well:
Class attribute name | Name | Value | Description |
---|---|---|---|
none | none | 0 | N/A |
auto | auto | 1 | Discord chooses the quality for optimal performance. |
full | full | 2 | 720p |
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.