1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2024-11-30 18:53:30 +00:00
This commit is contained in:
mavolin 2020-05-22 19:45:44 +02:00 committed by diamondburned
parent 68701704a1
commit 5fefaf07c4

View file

@ -91,10 +91,11 @@ func (c *Client) CreateInvite(
)
}
// DeleteInvite deletes a channel permission overwrite for a user or role in a
// channel. Only usable for guild channels.
// DeleteInvite deletes an invite.
//
// Requires the MANAGE_ROLES permission.
// Requires the MANAGE_CHANNELS permission on the channel this invite belongs
// to, or MANAGE_GUILD to remove any invite across the guild.
// Fires a Invite Delete Gateway event.
func (c *Client) DeleteInvite(code string) (*discord.Invite, error) {
var inv *discord.Invite
return inv, c.RequestJSON(&inv, "DELETE", EndpointInvites+code)