Use correct response code for guild creation

This commit is contained in:
Dustin Pianalto 2019-12-16 16:19:32 -09:00
parent 56fd2d231b
commit a5337d530f

View File

@ -21,7 +21,7 @@ class GuildEvents(commands.Cog):
headers=self.bot.auth_header, headers=self.bot.auth_header,
json=default_config) json=default_config)
guild_logger.info(f'Guild Joined {guild.name}: {await resp.json()}') guild_logger.info(f'Guild Joined {guild.name}: {await resp.json()}')
if resp.status == 200: if resp.status == 201:
for role in guild.roles: for role in guild.roles:
role_dict = { role_dict = {
'id': str(role.id), 'id': str(role.id),