Answers for "make the bot delete its own message"

0

discord bot remove message

import discord.ext

bot = commands.Bot(";")

@bot.event 
async def on_message(message):
    if message.content.upper().startswith(";SAY"):
        args = message.content.split(" ")
        await bot.send_message(message.channel, "%s" % (" ".join(args[1:])))
        await bot.delete_message(message)
Posted by: Guest on January-24-2021
0

make the bot delete its own message

await ctx.send('You don\'t have the permission to use this command', delete_after=5)
Posted by: Guest on May-20-2021

Code answers related to "make the bot delete its own message"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language