aboutsummaryrefslogtreecommitdiff
path: root/ambient.py
diff options
context:
space:
mode:
authorczjstmax <jstmaxlol@disroot.org>2026-01-21 17:14:11 +0100
committerczjstmax <jstmaxlol@disroot.org>2026-01-21 17:14:11 +0100
commit6436562e5a3d121ddad9f96233c6df5b3a2279b0 (patch)
treebbcba9d8121ef8f6b1131ca365d1a1f5ddbb5f3f /ambient.py
parentcbf23e4af8b3ac62597dd698a843905cb73328a6 (diff)
better 2/2
Signed-off-by: czjstmax <jstmaxlol@disroot.org>
Diffstat (limited to 'ambient.py')
-rw-r--r--ambient.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/ambient.py b/ambient.py
index 26f5e50..032ecdd 100644
--- a/ambient.py
+++ b/ambient.py
@@ -74,8 +74,11 @@ async def start(ctx):
else:
vc = await channel.connect()
- # self-deafen (anti-spy vibes)
- await vc.edit(deafen=True)
+ await ctx.guild.change_voice_state(
+ channel=vc.channel,
+ self_deaf=True
+ )
+
if not playlist_urls:
load_playlist()