Browse Source

fixed error when cc embed command was created with one option

pull/57/head
Roxie Gibson 5 years ago
parent
commit
77c936ef0e
No known key found for this signature in database
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      roxbot/cogs/customcommands.py

+ 2
- 1
roxbot/cogs/customcommands.py View File

@@ -214,7 +214,8 @@ class CustomCommands(commands.Cog):


CCCommands(name=command, guild_id=ctx.guild.id, output=output, type=command_type)
return await ctx.send(self.OUTPUT_ADD.format(command, output if len(output) > 1 else output[0]))

return await ctx.send(self.OUTPUT_ADD.format(command, output if len(output) > 1 or isinstance(output, dict) else output[0]))

@commands.has_permissions(manage_messages=True)
@custom.command()

Loading…
Cancel
Save