Skip to content

Commit

Permalink
Update client.py
Browse files Browse the repository at this point in the history
bugfixes
  • Loading branch information
erik-thorsell committed Jun 7, 2023
1 parent f73849d commit 02c19b4
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions nextguild/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,9 @@ def request(self, method: str, url: str, **kwargs) -> dict:
def create_channel(
self,
name: str,
channel_type,
server_id: str,
channel_type: str,
topic: str = None,
server_id: str = None,
group_id: str = None,
category_id: int = None,
is_public: bool = False,
Expand All @@ -196,9 +197,9 @@ def create_channel(
if category_id:
data.update({'categoryId': category_id})
if group_id:
data.update({'group_id': group_id})
data.update({'groupId': group_id})
if server_id:
data.update({'server_id': server_id})
data.update({'serverId': server_id})
if parent_id:
data.update({'parentId': parent_id})
if message_id:
Expand Down

0 comments on commit 02c19b4

Please sign in to comment.