aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar scragly <[email protected]>2020-10-19 03:13:12 +1000
committerGravatar scragly <[email protected]>2020-10-19 03:13:12 +1000
commit0bf48fce994e51428d679605281a879d2abc9905 (patch)
treece0ca8bab5ab38943f720c6e74b6912b38aa3e97
parentAddress a grammar error in failed reasons. (diff)
Instruct to reconnect to voice channel if connected on verification.
If a user is already connected to a voice channel at the time of getting verified through voice gate, they won't have their permissions actually apply to their current session. This change adds information on verifying so they know they must reconnect to have the changes apply.
-rw-r--r--bot/exts/moderation/voice_gate.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/bot/exts/moderation/voice_gate.py b/bot/exts/moderation/voice_gate.py
index ee3ac4003..c2743e136 100644
--- a/bot/exts/moderation/voice_gate.py
+++ b/bot/exts/moderation/voice_gate.py
@@ -113,6 +113,10 @@ class VoiceGate(Cog):
description="You have been granted permission to use voice channels in Python Discord.",
color=Colour.green()
)
+
+ if ctx.author.voice:
+ embed.description += "\n\nPlease reconnect to your voice channel to be granted your new permissions."
+
try:
await ctx.author.send(embed=embed)
await ctx.send(f"{ctx.author}, please check your DMs.")