View Source Nostrum.Struct.Invite (Nostrum v0.6.0)
Struct representing a Discord invite.
Link to this section Summary
Types
Approximate total member count of the guild this invite is for.
Approximate online member count of the guild this invite is for.
The channel this invite is for.
The invite code (unique ID).
When this invite was created.
An invite with metadata.
Partially populated guild struct of the guild this invite is for.
The user who created this invite.
Duration (in seconds) after which the invite expires.
Max number of times this invite can be used.
An invite without metadata.
Partially populated user struct of the target user for this invite.
The type of user target for this invite.
Whether this invite only grants temporary membership.
Number of times this invite has been used.
Link to this section Types
Specs
approximate_member_count() :: integer() | nil
Approximate total member count of the guild this invite is for.
Specs
approximate_presence_count() :: integer() | nil
Approximate online member count of the guild this invite is for.
Specs
channel() :: Nostrum.Struct.Channel.t()
The channel this invite is for.
Specs
code() :: String.t()
The invite code (unique ID).
Specs
created_at() :: String.t()
When this invite was created.
Specs
detailed_invite() :: %Nostrum.Struct.Invite{ approximate_member_count: approximate_member_count(), approximate_presence_count: approximate_presence_count(), channel: channel(), code: code(), created_at: created_at(), guild: guild(), inviter: inviter(), max_age: max_age(), max_uses: max_uses(), target_user: target_user(), target_user_type: target_user_type(), temporary: temporary(), uses: uses() }
An invite with metadata.
Specs
guild() :: Nostrum.Struct.Guild.t() | nil
Partially populated guild struct of the guild this invite is for.
Specs
inviter() :: Nostrum.Struct.User.t() | nil
The user who created this invite.
Specs
max_age() :: integer()
Duration (in seconds) after which the invite expires.
Specs
max_uses() :: integer()
Max number of times this invite can be used.
Specs
simple_invite() :: %Nostrum.Struct.Invite{ approximate_member_count: approximate_member_count(), approximate_presence_count: approximate_presence_count(), channel: channel(), code: code(), created_at: nil, guild: guild(), inviter: inviter(), max_age: nil, max_uses: nil, target_user: target_user(), target_user_type: target_user_type(), temporary: nil, uses: nil }
An invite without metadata.
Specs
t() :: simple_invite() | detailed_invite()
Specs
target_user() :: Nostrum.Struct.User.t() | nil
Partially populated user struct of the target user for this invite.
Specs
target_user_type() :: integer() | nil
The type of user target for this invite.
Specs
temporary() :: boolean()
Whether this invite only grants temporary membership.
Specs
uses() :: integer()
Number of times this invite has been used.