mirror of
https://github.com/diamondburned/arikawa.git
synced 2024-12-03 20:32:55 +00:00
API: fix #89
This commit is contained in:
parent
68701704a1
commit
5fefaf07c4
|
@ -91,10 +91,11 @@ func (c *Client) CreateInvite(
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
// DeleteInvite deletes a channel permission overwrite for a user or role in a
|
// DeleteInvite deletes an invite.
|
||||||
// channel. Only usable for guild channels.
|
|
||||||
//
|
//
|
||||||
// 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) {
|
func (c *Client) DeleteInvite(code string) (*discord.Invite, error) {
|
||||||
var inv *discord.Invite
|
var inv *discord.Invite
|
||||||
return inv, c.RequestJSON(&inv, "DELETE", EndpointInvites+code)
|
return inv, c.RequestJSON(&inv, "DELETE", EndpointInvites+code)
|
||||||
|
|
Loading…
Reference in a new issue