discord.py中ping命令失效求助,附机器人配置及命令代码
问题描述
我知道这个问题已经被解决过无数次了,但现有的答案都无法帮到我。
机器人配置代码
import discord from discord.ext import commands bot = commands.Bot(intents=discord.Intents.all(), command_prefix="-", description="A simply well made bot...")
Ping命令代码
@bot.command() async def ping(ctx): await ctx.send(f'Pong! In {round(bot.latency * 1000)}ms')
内容的提问来源于stack exchange,提问作者user18887950
相关产品推荐
相关产品推荐

