#Purge command disturbed

1 messages · Page 1 of 1 (latest)

cosmic kettle
#

Hello guys, my purge command was working very well.

@discord.slash_command(description="Löscht gewünschte Nachrichten")
    @commands.has_permissions(manage_messages=True)
    async def purge(self, ctx, limit:int):
        await ctx.channel.purge(limit=limit+0)
        slimit = str(limit)
        await ctx.respond(f'Es wurden {slimit} Nachrichten gelöscht! :white_check_mark: '.format(ctx.author), delete_after=5)
    @purge.error
    async def purge_error(self, ctx, error):
        if isinstance(error, MissingPermissions):
          embed = discord.Embed(title = '\n',
          description = '\n',color=discord.Color.red())
          embed.set_author(name='Nike sagt du darfst das nicht!',
          icon_url='https://cdn.discordapp.com/emojis/895062898844512307.png?size=96')
          await ctx.send("", embed=embed)

But now it seems to just delete 1 message reliable. If i do /purge 1
If its more than 1 it wont delete anything, but i dont get any errors... what could be the issue for this?

PS: limit+0 bc i had to delete the message itself before it was a self deleting respond

Greetings

royal trench
#

what are the intents?

cosmic kettle
#
# Get specific intents for fine control
intents = discord.Intents()
intents.emojis = True
intents.guilds = True
intents.messages = True  # Required for prefix commands!
...
# Get all non-priveliged intents; this excludes presences, members and message_content 
intents = discord.Intents.default()

# Set priveliged intents: these must be enabled on dev portal
intents.members = True
intents.presences = True
intents.message_content = True  # Required for prefix commands >= 2.0.0b5

# Get all intents; all intents must be enabled on dev portal.
intents = discord.Intents.all()# Get specific intents for fine control
intents = discord.Intents()
intents.emojis = True
intents.guilds = True
intents.messages = True  # Required for prefix commands!
...
# Get all non-priveliged intents; this excludes presences, members and message_content 
intents = discord.Intents.default()

# Set priveliged intents: these must be enabled on dev portal
intents.members = True
intents.presences = True
intents.message_content = True  # Required for prefix commands >= 2.0.0b5

# Get all intents; all intents must be enabled on dev portal.
intents = discord.Intents.all()
royal trench
#

I mean at your code

#

lol

cosmic kettle
royal trench
#

do you have both message intents?

cosmic kettle
#

Both?? Do you mean
intents.messages = True
intents.message_content = True

cosmic kettle
#

--
As my search for the deleted messages confirms; they`re no longer in the system BUT i never had this big delay.
Do you have experienced the same before?

cosmic kettle
#

few seconds, to multiple hours. Seems to be a general problem ATM i tested it with other bots too

gilded parrot
#

probably a discord issue then yeah

cosmic kettle
#

!close

tiny sigilBOT
#
ɴɪᴋᴇʀᴀɢᴇ#0944

The Command !close doesn't exist!

cosmic kettle
#

!solved

tiny sigilBOT
#
ɴɪᴋᴇʀᴀɢᴇ#0944

The Command !solved doesn't exist!

cosmic kettle
#

!help

lilac bladeBOT
#
Help

**:pushpin: You can now play games on Carl-bot. Use /roblox play to explore this new feature now!

HELP COMMANDS -**

!ecembed

Ecembed means edit custom embed and requires you to pass in json. Only use this if you know what you're doing

!embedsource

Fetches the json source of an embed (any embed!)

!embed

Creates an embed with the specified color in the specified channel, separate the title from the description with |

!report

Report an issue

!reportchannel

Set report channel

!lock

Locks down a channel by changing permissions for the default role. This will not work if your server is set up improperly

tiny sigilBOT
#
Help Command

dott Support server: Join Link
dott Bot Invite: Invite Link

Battling

$map $tower $dungeon $dungeon challenge $duel $attack

Character

$profile $stat $start $classes $subclasses $restart $race

Professions

$mine $craft $fish $refine

Equipment

$balance $inventory $equip $fuse $drop $sell $dropall $view $upgrade

Trade

$trade

Skills

$skilltree $learn $skills

Guild

$guild create $guild invite $guild kick $guild leave $guild disband $guild donate $changeowner $guild members

Pets

$view $feed $release $equip

Shop

$shop $buy

Market

$market list $market buy $market remove $market view $market listings $market search

Party

$party $party create $party kick $party leave $party disband $party invite $party set $party members

Artifact

$view, $equip

Miscellaneous

$gamble $leaderboard $botinfo $items

#
ɴɪᴋᴇʀᴀɢᴇ#0944

You haven't started yet, do $start to begin!

royal trench
#

.close

vivid anchorBOT
#

Done with your help thread?

Please close your own help thread by using </close:1009144375709814897> with @feral forge.

Backup bot: </solved:1109625445990793246> (or .solved) with @vivid anchor.

cosmic kettle
#

.solved