fix undefined

This commit is contained in:
Danya H 2024-06-08 17:31:19 +01:00
parent f09ed4e7f4
commit a3841cf6c3

View File

@ -29,7 +29,7 @@ export class GuildMemberAdd {
const channel = await member.guild.channels.fetch(welcomeChannelID) const channel = await member.guild.channels.fetch(welcomeChannelID)
const role = await member.guild.roles.fetch(roleID) const role = await member.guild.roles.fetch(roleID)
if (channel?.isTextBased() && role) { if (channel && channel.isTextBased() && role) {
channel.send({ channel.send({
embeds: [embed], embeds: [embed],
content: `What's up, ${userMention(member.id)}`, content: `What's up, ${userMention(member.id)}`,