Discord Elixir v1.1.18 DiscordEx.RestClient.Resources.Invite View Source
Convience helper for invites
Link to this section Summary
Link to this section Functions
Accept invite
Accept an invite. This is not available to bot accounts, and requires the guilds.join OAuth2 scope to accept on behalf of normal users.
Parameters
- conn: User connection for REST holding auth info
- invite_id: Invite id
Examples
Invite.accept(conn, "99999999993832")
Delete invite object
Requires the MANAGE_CHANNELS permission. Returns an invite object on success.
Parameters
- conn: User connection for REST holding auth info
- invite_id: Invite id
Examples
Invite.delete(conn, "99999999993832")