diff --git a/src/events/guildMemberAdd.ts b/src/events/guildMemberAdd.ts index 77d39c7..6f8a3e3 100644 --- a/src/events/guildMemberAdd.ts +++ b/src/events/guildMemberAdd.ts @@ -17,7 +17,7 @@ export default class GuildMemberAdd { let isBot = 'Bot'; if (!member.user.bot) isBot = 'Member'; if (!client.config.botSwitches.logs) return; - (client.channels.resolve(client.config.dcServer.channels.welcome) as Discord.TextChannel).send({embeds: [new client.embed().setColor(client.config.embedColor).setThumbnail(member.user.displayAvatarURL({size: 2048}) || member.user.defaultAvatarURL).setTitle(`Welcome to Daggerwin, ${member.user.username}!`).setFooter({text: `${index}${suffix} member`})]}) + (client.channels.resolve(client.config.dcServer.channels.welcome) as Discord.TextChannel).send({embeds: [new client.embed().setColor(client.config.embedColor).setThumbnail(member.user.displayAvatarURL({size: 2048}) || member.user.defaultAvatarURL).setTitle(`Welcome to ${member.guild.name}, ${member.user.username}!`).setFooter({text: `${index}${suffix} member`})]}) const newInvites = await member.guild.invites.fetch(); const usedInvite = newInvites.find((inv:Discord.Invite)=>client.invites.get(inv.code)?.uses < inv.uses); newInvites.forEach((inv:Discord.Invite)=>client.invites.set(inv.code,{uses: inv.uses, creator: inv.inviterId, channel: inv.channel.name})); diff --git a/src/models/punishments.ts b/src/models/punishments.ts index 16fd1ff..f72571b 100644 --- a/src/models/punishments.ts +++ b/src/models/punishments.ts @@ -118,7 +118,6 @@ export class PunishmentsSvc { break; default: channel = this.client.config.dcServer.channels.logs; - console.log('[Punishment] BKL channel doesn\'t seem to exist anymore, falling back to #bot-log.') break; } const embed = new this.client.embed()