Check if receive no content response
This commit is contained in:
parent
090ba646c9
commit
5a7c68bdcb
@ -284,7 +284,7 @@ class Rcon(commands.Cog):
|
||||
f'{self.bot.api_base}/rcon/{ctx.guild.id}/{server_name}/listplayers',
|
||||
headers=self.bot.auth_header
|
||||
)
|
||||
if resp.status == 200:
|
||||
if resp.status == 200 or resp.status == 204:
|
||||
message = '\n'.join(await resp.json())
|
||||
await ctx.channel.trigger_typing()
|
||||
await msg.delete()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user