Browse Source

feature - add GuildMember.unban utility method

feature/docs
Andrei 8 years ago
parent
commit
8d3e290e03
  1. 6
      disco/types/guild.py

6
disco/types/guild.py

@ -169,6 +169,12 @@ class GuildMember(SlottedModel):
""" """
self.guild.create_ban(self, delete_message_days) 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): def set_nickname(self, nickname=None):
""" """
Sets the member's nickname (or clears it if None). Sets the member's nickname (or clears it if None).

Loading…
Cancel
Save