1
0
mirror of https://github.com/toast-ts/Daggerbot-TS.git synced 2024-12-27 20:35:38 -05:00

Make it neater.

This commit is contained in:
AnxietyisReal 2023-02-12 20:11:42 +11:00
parent fa5747dfb7
commit 96121e2b6a

View File

@ -93,17 +93,12 @@ export class punishments extends Database {
(this.client.channels.resolve(channelId) as Discord.TextChannel).send({embeds: [embed]});
};
getTense(type: string) { // Get past tense form of punishment type, grammar yes
switch (type) {
case 'ban':
return 'banned';
case 'softban':
return 'softbanned';
case 'kick':
return 'kicked';
case 'mute':
return 'muted';
case 'warn':
return 'warned';
switch (type) {
case 'ban': return 'banned';
case 'softban': return 'softbanned';
case 'kick': return 'kicked';
case 'mute': return 'muted';
case 'warn': return 'warned';
}
}
async addPunishment(type: string, options: punOpt, moderator: string, reason: string, User: Discord.User, GuildMember?: Discord.GuildMember) {