aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar RohanJnr <[email protected]>2021-05-18 14:40:58 +0530
committerGravatar RohanJnr <[email protected]>2021-05-18 14:40:58 +0530
commit17d3520743cc3843bc928ad7ecc8cc055422a146 (patch)
tree80a901deaa34e5d270d394f0ebadf4997d32455d
parentMerge branch 'main' of https://github.com/python-discord/bot into voice_ver_dm (diff)
Let on_message event handler delete bot voice pings.
-rw-r--r--bot/exts/moderation/voice_gate.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/bot/exts/moderation/voice_gate.py b/bot/exts/moderation/voice_gate.py
index 9d51d37f5..976ab2653 100644
--- a/bot/exts/moderation/voice_gate.py
+++ b/bot/exts/moderation/voice_gate.py
@@ -159,9 +159,8 @@ class VoiceGate(Cog):
await ctx.author.send(embed=embed)
except discord.Forbidden:
log.info("Could not send user DM. Sending in voice-verify channel and scheduling delete.")
- message = await ctx.send(embed=embed)
- await asyncio.sleep(GateConf.voice_ping_delete_delay)
- await message.delete()
+ await ctx.send(embed=embed)
+
return
checks = {