diff options
| author | Rapptz <[email protected]> | 2020-09-23 08:03:06 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2020-09-23 08:03:06 -0400 |
| commit | 7126f5a78c4d08833ee42e3ba75cc5b8b5ac84c4 (patch) | |
| tree | bb9663e9cafcd946e5388f2feb4687f5e30af698 /discord/http.py | |
| parent | Use /invites/ instead of /invite/ (diff) | |
| download | discord.py-7126f5a78c4d08833ee42e3ba75cc5b8b5ac84c4.tar.xz discord.py-7126f5a78c4d08833ee42e3ba75cc5b8b5ac84c4.zip | |
Use delete_message_days instead of delete-message-days
Diffstat (limited to 'discord/http.py')
| -rw-r--r-- | discord/http.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/http.py b/discord/http.py index 6e726f87..d1556e30 100644 --- a/discord/http.py +++ b/discord/http.py @@ -497,7 +497,7 @@ class HTTPClient: def ban(self, user_id, guild_id, delete_message_days=1, reason=None): r = Route('PUT', '/guilds/{guild_id}/bans/{user_id}', guild_id=guild_id, user_id=user_id) params = { - 'delete-message-days': delete_message_days, + 'delete_message_days': delete_message_days, } if reason: |