GuildInventorySettings

A guild's inventory settings.

Attributes

emoji_pack_collectible : 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.

ParameterTypeOptionalKeyword onlyDescription
emoji_pack_collectible

bool

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.

copy()

Copies the guild inventory settings.

Returns

new : instance<type<self>>

copy_with(...)

Copies the guild inventory settings with the given fields.

ParameterTypeOptionalKeyword onlyDescription
emoji_pack_collectible

bool

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.

from_data(data)

Creates a guild inventory settings from the requested guild inventory settings data.

ParameterTypeDescription
data

dict<str, object>

Received guild inventory settings data.

Returns

self : instance<cls>

to_data(...)

Converts the guild inventory settings to a json serializable object.

ParameterTypeOptionalKeyword onlyDefaultDescription
defaults

bool

False

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.