Invites
Marco Cusano edited this page May 7, 2019
·
1 revision
Create a new invite object for the channel. Only usable for guild channels. Requires the CREATE_INSTANT_INVITE
permission. All JSON parameters for this route are optional, however the request body is not. If you are not sending any fields, you still have to send an empty JSON object ({}). Returns an invite object.
$params = array(
"max_age" => 0,
"unique" => true
);
$discord->channels->createInvite("CHANNEL_ID", $params);
Returns an invite object for the given code.
$discord->invites->get("INVITATION_CODE");
INVITATION_CODE
param must be in the following format: 123AbcD
- VanityURL
Delete an invite. Requires the MANAGE_CHANNELS
permission on the channel this invite belongs to, or MANAGE_GUILD
to remove any invite across the guild. Returns an invite object on success.
$discord->invites->delete("INVITATION_CODE");
INVITATION_CODE
param must be in the following format: 123AbcD
- bulkDelete
- create
- createInvite
- createMessage
- delete
- deleteMessage
- deletePin
- deleteReactions
- edit
- editMessage
- get
- message
- messageReactions
- messages
- pin
- pins
- react
- ban
- bans
- channels
- create
- createChannel
- createEmoji
- createIntegration
- createRole
- delete
- deleteChannel
- deleteEmoji
- deleteIntegration
- deleteRole
- edit
- editChannel
- editEmbed
- editEmoji
- editIntegration
- editRole
- embed
- emoji
- emojis
- get
- integrations
- invite
- invites
- kick
- member
- memberRole
- members
- regions
- removeMemberRole
- roles
- unban
- vanity
- widget
- channel
- create
- delete
- deleteByToken
- edit
- editByToken
- execute (alpha)
- executeGitHub
- executeSlack
- get
- guild