#purge() does not work
1 messages · Page 1 of 1 (latest)
Do you have intents?
ye
Which one?
import discord
from discord.ext import commands
intents = discord.Intents.all()
bot = commands.Bot(command_prefix='.', intents=intents)
@bot.command()
async def clear(ctx, amount: int):
await ctx.channel.purge(limit=amount+1)
await ctx.send(f"{amount}")
bot.run('-----')
Can you show the pip list?
Any error?
No. In try: except: - same, no errors
on two different bots with different code such a problem
Hmm, it seems like after 5 minutes the messages were deleted, but why such a delay? It's like problems from Discord
idk
It's just client cache
LOL
this has never happened before.. for so long..
It will execute quickly but sometimes your client can't process all the message deletes fast enough and it'll take a while
for me
If you try to search for the messages or you refresh, they won't be there