mirror of
https://github.com/toast-ts/Daggerbot-TS.git
synced 2024-11-17 16:30:58 -05:00
Make it neater.
This commit is contained in:
parent
64a6f51d11
commit
464356b9a3
@ -94,16 +94,11 @@ export class punishments extends Database {
|
||||
};
|
||||
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';
|
||||
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) {
|
||||
|
Loading…
Reference in New Issue
Block a user