#Join to create

1 messages Β· Page 1 of 1 (latest)

lusty kestrel
#

why does my bot don't delete the channel when no one is in it

sonic spruce
#

Do you have intents and permissions?

west umbra
#

new_channel_name = None
if after.channel is not None and after.channel.id == int(create_channel_id):
new_channel_name = f"πŸ’Žβ”ƒ {member.display_name}'s Voice"
new_channel = await member.guild.create_voice_channel(name=new_channel_name, category=after.channel.category)
await member.move_to(new_channel)
if before.channel is not None and before.channel.name.startswith("πŸ’Žβ”ƒ"):
user_channel = before.channel
if user_channel.members == []:
await user_channel.delete()

#

you need to defnied the create channel before

tepid pumice
#

See what you get

west umbra
lusty kestrel
west umbra
#

You Β΄re welcome

tepid pumice
tepid pumice
#

anyways

#

.close