diff options
| author | Harmon <[email protected]> | 2017-09-13 18:05:09 -0500 |
|---|---|---|
| committer | Harmon <[email protected]> | 2017-09-13 18:05:09 -0500 |
| commit | 91e2163523ac04705e8730f547eed7a9ff502663 (patch) | |
| tree | b92ec126ca0288abcb9e48749a70333352e51c74 /discord/http.py | |
| parent | Fix error when creating guild channels. (diff) | |
| download | discord.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.py | 4 |
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: |