aboutsummaryrefslogtreecommitdiff
path: root/discord/http.py
diff options
context:
space:
mode:
authorHarmon <[email protected]>2017-09-13 18:05:09 -0500
committerHarmon <[email protected]>2017-09-13 18:05:09 -0500
commit91e2163523ac04705e8730f547eed7a9ff502663 (patch)
treeb92ec126ca0288abcb9e48749a70333352e51c74 /discord/http.py
parentFix error when creating guild channels. (diff)
downloaddiscord.py-91e2163523ac04705e8730f547eed7a9ff502663.tar.xz
discord.py-91e2163523ac04705e8730f547eed7a9ff502663.zip
Fix typo in http.create_channel
Diffstat (limited to 'discord/http.py')
-rw-r--r--discord/http.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/discord/http.py b/discord/http.py
index 458e68d3..1c020ee1 100644
--- a/discord/http.py
+++ b/discord/http.py
@@ -511,10 +511,10 @@ class HTTPClient:
r = Route('PATCH', '/guilds/{guild_id}/channels', guild_id=guild_id)
return self.request(r, json=data, reason=reason)
- def create_channel(self, guild_id, name, channe_type, permission_overwrites=None, *, reason=None):
+ def create_channel(self, guild_id, name, channel_type, permission_overwrites=None, *, reason=None):
payload = {
'name': name,
- 'type': channe_type
+ 'type': channel_type
}
if permission_overwrites is not None: