Some Name Problems

const voiceChannel = message.member.voiceChannel

if (!voiceChannel.name != “:busts_in_silhouette:》”) return message.channel.send(Yalnızca oluşturduğunuz kanallarda limit sistemini kullanabilirsiniz.).then(message => message.delete(10000))

It looks like voiceChannel does not have a name property.

Try console.log(voiceChannel) to see what properties it has?

Otherwise, please post more of the error message :slight_smile:

The message.member object doesn’t have a voiceChannel property.

Try using

message.member.voice.channel.name

as this is the proper syntax.

GuildMember.voice

VoiceState.channel

1 Like