mirror of
https://github.com/toast-ts/Daggerbot-TS.git
synced 2024-09-29 16:30:59 -04:00
Make it neater.
This commit is contained in:
parent
fa5747dfb7
commit
96121e2b6a
@ -94,16 +94,11 @@ export class punishments extends Database {
|
|||||||
};
|
};
|
||||||
getTense(type: string) { // Get past tense form of punishment type, grammar yes
|
getTense(type: string) { // Get past tense form of punishment type, grammar yes
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case 'ban':
|
case 'ban': return 'banned';
|
||||||
return 'banned';
|
case 'softban': return 'softbanned';
|
||||||
case 'softban':
|
case 'kick': return 'kicked';
|
||||||
return 'softbanned';
|
case 'mute': return 'muted';
|
||||||
case 'kick':
|
case 'warn': return 'warned';
|
||||||
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) {
|
async addPunishment(type: string, options: punOpt, moderator: string, reason: string, User: Discord.User, GuildMember?: Discord.GuildMember) {
|
||||||
|
Loading…
Reference in New Issue
Block a user