disco.types.invite

Classes

Invite

Inherits From SlottedModel

An invite object.

Attributes
Name Type Description
code str The invite code.
inviter :class:`disco.types.user.User` The user who created this invite.
guild :class:`disco.types.guild.Guild` The guild this invite is for.
channel :class:`disco.types.channel.Channel` The channel this invite is for.
max_age int The time after this invite's creation at which it expires.
max_uses int The maximum number of uses.
uses int The current number of times the invite was used.
temporary bool Whether this invite only grants temporary membership.
created_at datetime When this invite was created.

Functions

create_for_channel(cls, channel,*args,**kwargs)

delete(self,*args,**kwargs)

results matching ""

    No results matching ""