Reputation: 3
I wanted to make a command so that I mark a member and the bot deletes all his messages.
it would be something like:
from discord.ext import commands
from discord import *
bot = commands.bot(command_prefix="Mia ", case_insensitive = "True", intents=Intents.all())
@bot.command(name="clean")
async def clear(ctx, m:discord.Member):
await m.message.delete_all()
bot.run("Token")
Note: this was just a hypothetical code, it doesn't work
Upvotes: 0
Views: 125