diff --git a/lib/src/main/objects/Invite.dart b/lib/src/main/objects/Invite.dart index fe0bfd7..3b2fab2 100644 --- a/lib/src/main/objects/Invite.dart +++ b/lib/src/main/objects/Invite.dart @@ -24,4 +24,10 @@ class Invite { this.channel = new InviteChannel._new( this.client, raw['channel'] as Map); } + + /// Deletes this Invite. + Future delete() async { + await this.client.http.send('DELETE', '/invites/$code'); + return null; + } }