Skip to content

Commit c5eb0e2

Browse files
committed
fix(slowmode.py): remove unnecessary early defer call in slowmode command
The early defer call is removed to streamline the command execution process. The defer was unnecessary as the interaction acknowledgment is handled elsewhere, ensuring the command's responsiveness without prematurely deferring the interaction.
1 parent 2ef850b commit c5eb0e2

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/tux/modules/moderation/slowmode.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,6 @@ async def slowmode(
7575
"""
7676
assert ctx.guild
7777

78-
# Defer early to acknowledge interaction before async work
79-
if ctx.interaction:
80-
await ctx.defer(ephemeral=True)
81-
8278
# Try to parse first argument as a channel
8379
target_channel = (
8480
await self._resolve_channel(ctx, channel_or_delay)

0 commit comments

Comments
 (0)