2021年5月2日星期日

How to delete messages with discord bot

I made a small discord bot, and I need him to delete a message from the writer and then post something. When I use @bot.event it works fine but it's the only thing working in code(only the delete part works). And how to use ctx.message.delete?

@bot.command(aliases=["IDC"])  async def idc(ctx):  ctx.channel.send("https://cdn.discordapp.com/attachments/586526210469789717/838335535944564756/Editor40.mp4")  
https://stackoverflow.com/questions/67358851/how-to-delete-messages-with-discord-bot May 03, 2021 at 12:43AM

没有评论:

发表评论