Answers for "discord bot to delete all your messages"

1

discord bot clear messages

switch(args[0]){
case 'clear':
        if(!args[1]) return message.reply('Error please define second argument')
            message.channel.bulkDelete(args[1]);
        break;  
}
Posted by: Guest on August-23-2020
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

Code answers related to "discord bot to delete all your messages"

Code answers related to "Assembly"

Browse Popular Code Answers by Language