GuildInventorySettings
A guild's inventory settings.
Attributes
bool
Whether you can collect this guild's emojis and use it across all guilds.
Methods
(...)
__new__Creates a new guild inventory settings with the given fields.
Parameter | Type | Optional | Keyword only | Description |
---|---|---|---|---|
emoji_pack_collectible |
| Whether you can collect this guild's emojis and use it across all guilds. |
Raises
TypeError
- Parameter with incorrect type given.
ValueError
- Parameter with incorrect value given.
()
copyCopies the guild inventory settings.
Returns
new : instance<type<self>>
(...)
copy_withCopies the guild inventory settings with the given fields.
Parameter | Type | Optional | Keyword only | Description |
---|---|---|---|---|
emoji_pack_collectible |
| Whether you can collect this guild's emojis and use it across all guilds. |
Returns
new : instance<type<self>>
Raises
TypeError
- Parameter with incorrect type given.
ValueError
- Parameter with incorrect value given.
(data)
from_dataCreates a guild inventory settings from the requested guild inventory settings data.
Parameter | Type | Description |
---|---|---|
data |
| Received guild inventory settings data. |
Returns
self : instance<cls>
(...)
to_dataConverts the guild inventory settings to a json serializable object.
Parameter | Type | Optional | Keyword only | Default | Description |
---|---|---|---|---|---|
defaults |
|
| Whether default values should be included as well. |
Returns
data : dict<str, object>
()
__bool__Returns whether the guild has any features.
()
__eq__Returns whether the two guild inventory settings are equal.
()
__getattr__Drops a rich attribute error.
()
__hash__Returns the hash value of the guild inventory settings.
()
__repr__Returns the guild inventory settings' representation.