discord-interactions

Miscellanous ModelsΒΆ

class interactions.api.models.misc.DictSerializerMixin(**kwargs)

The purpose of this mixin is to be subclassed.

..note:

On subclass, it:
    -- From kwargs (received from the Discord API response), add it to the `_json` attribute
    such that it can be reused by other libraries/extensions
    -- Aids in attributing the kwargs to actual model attributes, i.e. `User.id`

..warning:

This does NOT convert them to its own data types, i.e. timestamps, or User within Member. This is left by
the object that's using the mixin.
class interactions.api.models.misc.Overwrite(**kwargs)

This is used for the PermissionOverride obj

class interactions.api.models.misc.ClientStatus(**kwargs)