discordaio.invite

Classes

  • Invite: Represents a code that when used, adds a user to a guild.
  • InviteMetadata: Represents the invite metadata
class discordaio.invite.Invite(code='', guild=None, channel=None)[source]

Represents a code that when used, adds a user to a guild.

New in version 0.2.0.

code

str – the invite code (unique ID)

guild

Guild – the guild this invite is for

channel

Channel – the channel this invite is for

Inheritance

Inheritance diagram of Invite
class discordaio.invite.InviteMetadata(inviter=None, uses=0, max_uses=0, max_age=0, temporary=False, created_at=None, revoked=False)[source]

Represents the invite metadata

New in version 0.2.0.

inviter

A – user object user who created the invite

uses

int – number of times this invite has been used

max_uses

int – max number of times this invite can be used

max_age

int – duration (in seconds) after which the invite expires

temporary

bool – whether this invite only grants temporary membership

created_at

int – timestamp when this invite was created

revoked

bool – whether this invite is revoked

Inheritance

Inheritance diagram of InviteMetadata