瀏覽代碼

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:

Loading…
取消
儲存