浏览代码

fixed wrong type in the list command being queried.

tags/v2.2.0
Roxie Gibson 5 年前
父节点
当前提交
37cbf0390c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      roxbot/cogs/customcommands.py

+ 1
- 1
roxbot/cogs/customcommands.py 查看文件

@@ -282,7 +282,7 @@ class CustomCommands(commands.Cog):
with db_session:
no_prefix_commands = select(c for c in CCCommands if c.type == 0 and c.guild_id == ctx.guild.id)[:]
prefix_commands = select(c for c in CCCommands if c.type == 1 and c.guild_id == ctx.guild.id)[:]
embed_commands = select(c for c in CCCommands if c.type == 3and c.guild_id == ctx.guild.id)[:]
embed_commands = select(c for c in CCCommands if c.type == 2 and c.guild_id == ctx.guild.id)[:]

def add_commands(commands, paginator):
if not commands:

正在加载...
取消
保存