#Join to create
1 messages Β· Page 1 of 1 (latest)
Do you have intents and permissions?
du coup want mine ?
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
Try printing print(before.channel.name)
And also print(before.channel.name == possible_channel_name)
See what you get
add this if after.channel is not None and after.channel.name == "temp"
it works thank you
You Β΄re welcome
yeah you never checked if after.channel is not None
unlike here
anyways
.close