在服务器中,允许权限使用Slash-commands。我如何解决这个问题? 浏览51提问于2021-10-13得票数 0 回答已采纳 1回答 尝试在discord.py上使用异步函数运行cog_loader时出错 、、 我正试图在码头集装箱上建造我的第一个discord.py机器人。但是,在运行它时,回溯在cogs_loader上给出了以下错误:我使用以下文章试图修复...
Everything to run smoothly and the Slash commands to be working. Actual Results Traceback (most recent call last): File "/home/quartz_i_warrior/MinecraftBot.py", line 1, in <module> import json, requests, discord, asyncio, time, itertools, os, topgg File "/home/quartz_i_warrior/.loca...
An advanced discord bot made with discord.py 2.5.2 Context commands, Views, Modals, Slash commands, Hybrid commands, Group commands, commands, database support, dynamic structure, socket interface, error-handling, logging, ANSI, translator and more. ...
To use Class Cog (with Decorators like discord.py), import them from /message/class or /slash/class.TypeScript is required to use Decorators.Note: Command Management is inspired by discord.py's cogs system. There are two implementations, one that are different, focuses on concept of one ...
Completely based on Discord's Slash Commands, written in the Discord.py library Standard moderation commands such as warn, mute, kick, ban, ... XP and role-based permissions system An advanced filter and anti-raid system A logging and message mirroring system Self-assignable roles Miscellaneous ...
嵌入齿轮(discord.py) 、 我尝试在我的cogs文件中实现嵌入消息。当我尝试使用该命令时,此错误在我的控制台上弹出。self.username = ctx.message.author.display_name AttributeError: 'NoneType' object has no attribute 'author' 该错误指出作者返回下面是我的代码片段: @ cog_ext.cog_slash(description = "Cal...
1.定义discord.Client和commands.Bot 你应该只使用一个,为了我下面的例子的目的,我将使用commands.bot...
bot = commands.Bot(command_prefix=str(get_prefix), intents=intents) bot.remove_command('help') # slash = SlashCommand(bot, override_type = True, sync_on_cog_reload=True, sync_commands=True) ### Server-Join ### @bot.event async def on_guild_join(guild): with open("prefix.json",...
1.定义discord.Client和commands.Bot 你应该只使用一个,为了我下面的例子的目的,我将使用commands.bot...
give_roles.py group_commands.py hybrid_commands.py initial_modals.py initial_select.py initial_view.py load_cmd_folder.py load_cogs_from_folder.py pagination.py readyornot.py requirements.txt settings.py slashcommands_checks.py slashcommands_decorators.py slashcommands_transfor...