Skip to content

Commit

Permalink
fix voicemove
Browse files Browse the repository at this point in the history
  • Loading branch information
BenCos17 committed Jun 23, 2024
1 parent 7e48961 commit 7322c8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion servertools/servertools.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ async def voicemove(self, ctx, user: discord.Member, channel: discord.VoiceChann
if ctx.guild:
if ctx.guild.get_member(user.id):
try:
await user.voice.channel.move_to(channel.id)
await user.move_to(channel)
await ctx.send(f"Moved {user.name} to {channel.name}.")
except discord.Forbidden:
await ctx.send("I do not have permission to move members in voice channels.")
Expand Down

0 comments on commit 7322c8c

Please sign in to comment.