fix undefined
This commit is contained in:
parent
f09ed4e7f4
commit
a3841cf6c3
@ -29,7 +29,7 @@ export class GuildMemberAdd {
|
||||
const channel = await member.guild.channels.fetch(welcomeChannelID)
|
||||
const role = await member.guild.roles.fetch(roleID)
|
||||
|
||||
if (channel?.isTextBased() && role) {
|
||||
if (channel && channel.isTextBased() && role) {
|
||||
channel.send({
|
||||
embeds: [embed],
|
||||
content: `What's up, ${userMention(member.id)}`,
|
||||
|
Loading…
Reference in New Issue
Block a user