在服务器中,允许权限使用Slash-commands。我如何解决这个问题? 浏览51提问于2021-10-13得票数 0 回答已采纳 1回答 尝试在discord.py上使用异步函数运行cog_loader时出错 、、 我正试图在码头集装箱上建造我的第一个discord.py机器人。但是,在运行它时,回溯在cogs_loader上给出了以下错误:我使用以下文章试图修复...
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",...
client):self.client=client guild_id='your_id'@nextcord.slash_command(name="cat",guild_id...
lui-cogs-v3 Custom cogs for Red-DiscordBot v3, used by the SFU Anime Club. Red-DiscordBot v3.5.x / discord.py v2.x Only! This branch contains cogs suitable for Red-DiscordBot v3.5.x/discord.py v2.x only. For Red-DiscordBot v3.4.x/discord.py v1.7.3, please use the dpy1 bran...
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...
35 changes: 35 additions & 0 deletions 35 cogs/characters/cog.py @@ -0,0 +1,35 @@ import asyncio import discord from discord import app_commands from discord.ext import commands from genshin_py import genshin_app from utility import EmbedTemplate from utility.custom_log import SlashCom...
不是www.example.com)中定义该斜杠命令(使用@commands.slash_command)main.py,然后在main.py的on_...
An advanced discord bot made with discord.py 2.4.0 Context commands, Views, Modals, Slash commands, Hybrid commands, Group commands, commands, database support, dynamic structure, socket interface, error-handling, logging, ANSI, translator and more. python bot discord discord-bot discordpy discord...
嵌入齿轮(discord.py) 、 我尝试在我的cogs文件中实现嵌入消息。当我尝试使用该命令时,此错误在我的控制台上弹出。self.username = ctx.message.author.display_name AttributeError: 'NoneType' object has no attribute 'author' 该错误指出作者返回下面是我的代码片段: @ cog_ext.cog_slash(description = "Cal...
Slash commands /clear_memory: Clears the AI memory. /print_memory: Prints the current AI memory. /restart: Restarts the bot (requires administrator permissions). Customization Discord-GPT-Chat-Bot's command handling can be customized using cogs. To add a new command or functionality, create a ...