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)

 


Revision #9
Created Thu, May 2, 2019 12:22 PM by 1011025m
Updated Mon, May 6, 2019 1:19 PM by 1011025m