crux_structs v0.2.3 Crux.Structs.Invite View Source
Represents a Discord Invite Object
List of what property can be present fetched with what function:
| Property | Rest.get_guild_vanity_invite/1 | Rest.get_invite/1 | Rest.create_channel_invite/1 | Rest.delete_invite/1 |
Rest.get_channel_invites/1 | ||||
Rest.get_guild_invites/1 | ||||
| code | yes | yes | yes | yes |
| guild | no | if not group dm | if not group dm | if not group dm |
| channel | no | yes | yes | yes |
| inviter | no | yes | yes | yes |
| uses | yes | no | yes | no |
| max_uses | no | no | yes | no |
| max_age | no | no | yes | no |
| temporary | no | no | yes | no |
| created_at | no | no | yes | no |
| revoked | no | no | no | no |
| approximate_presence_count | no | yes | no | no |
| approximate_member_count | no | yes | no | no |
Notes:
:guildonly has:verification_level,:features,:name,:splash,:id, and:icon.:channelonly has:type,:idand:name.
You can, if applicable, fetch the full structs from cache.
Link to this section Summary
Functions
Creates a t:Crux.Structs.Invite.t/0 struct from raw data.
Link to this section Types
Specs
t() :: %Crux.Structs.Invite{
approximate_member_count: integer() | nil,
approximate_presence_count: integer() | nil,
channel: Crux.Structs.Channel.t(),
code: String.t(),
created_at: String.t() | nil,
guild: Crux.Structs.Guild.t(),
inviter: Crux.Structs.User.t() | nil,
max_age: integer() | nil,
max_uses: integer() | nil,
revoked: boolean() | nil,
temporary: boolean() | nil,
uses: integer() | nil
}
Link to this section Functions
Specs
Creates a t:Crux.Structs.Invite.t/0 struct from raw data.
Automatically invoked by
Crux.Structs.create/2.