deleteChannelInvite


General

deleteChannelInvite deletes an invite from a channel by the given invite code.


Usage

Client:deleteChannelInvite(<string> channelId, <string> invite, (string) reason)
Returns: <Invite> invite

Invite (in the argument) is the code of the invite. Insert the code only, otherwise this will return an error.


Limitations

See discordChannel PATCH.


Example

local deleter = Client:deleteChannelInvite("574945471760695315", "npQNVZ")
print(deleter.uses)

 

Back to top