Delete Invite

ORCAcode discord_delete_invite(struct discord *client, char *invite_code, struct discord_invite *ret)

Delete an invite.

Note

Requires the MANAGE_CHANNELS permission on the channel this invite belongs to, or MANAGE_GUILD to remove any invite across the guild.

Note

Fires a Invite Delete event

Parameters
  • client – the client created with discord_init()

  • invite_code – the invite code

  • ret – if successful, a discord_invite that should be free’d with discord_invite_cleanup()

Returns

ORCAcode for how the operation went, ORCA_OK means nothing out of the ordinary