Skip to content
This repository has been archived by the owner on Aug 1, 2021. It is now read-only.

Commit

Permalink
Set the ban reason in ban list as well (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
PixeLInc authored and b1naryth1ef committed Feb 12, 2018
1 parent 7d1fe75 commit e1fcda0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions disco/api/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,7 @@ def guilds_bans_list(self, guild):
def guilds_bans_create(self, guild, user, delete_message_days=0, reason=None):
self.http(Routes.GUILDS_BANS_CREATE, dict(guild=guild, user=user), params={
'delete-message-days': delete_message_days,
'reason': reason,
}, headers=_reason_header(reason))

def guilds_bans_delete(self, guild, user, reason=None):
Expand Down

0 comments on commit e1fcda0

Please sign in to comment.