From 8d3e290e032268bf5fe204c99f32ed941b8b65ab Mon Sep 17 00:00:00 2001 From: Andrei Date: Mon, 28 Nov 2016 15:33:45 -0600 Subject: [PATCH] feature - add GuildMember.unban utility method --- disco/types/guild.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/disco/types/guild.py b/disco/types/guild.py index 0b652fa..468acbc 100644 --- a/disco/types/guild.py +++ b/disco/types/guild.py @@ -169,6 +169,12 @@ class GuildMember(SlottedModel): """ self.guild.create_ban(self, delete_message_days) + def unban(self): + """ + Unbans the member from the guild. + """ + self.guild.delete_ban(self) + def set_nickname(self, nickname=None): """ Sets the member's nickname (or clears it if None).