From f8430db3e5578e8531e6943581bb59c47ccabaea Mon Sep 17 00:00:00 2001 From: toast-ts <96593068+toast-ts@users.noreply.github.com> Date: Fri, 19 Jan 2024 21:33:51 +1100 Subject: [PATCH] Improvements --- src/events/guildMemberAdd.ts | 2 +- src/models/punishments.ts | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) 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()