Use correct response code for guild creation
This commit is contained in:
parent
56fd2d231b
commit
a5337d530f
@ -21,7 +21,7 @@ class GuildEvents(commands.Cog):
|
||||
headers=self.bot.auth_header,
|
||||
json=default_config)
|
||||
guild_logger.info(f'Guild Joined {guild.name}: {await resp.json()}')
|
||||
if resp.status == 200:
|
||||
if resp.status == 201:
|
||||
for role in guild.roles:
|
||||
role_dict = {
|
||||
'id': str(role.id),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user