From 464356b9a3107359aff9c0f3b2bb745d641557f5 Mon Sep 17 00:00:00 2001 From: AnxietyisReal <96593068+AnxietyisReal@users.noreply.github.com> Date: Sun, 12 Feb 2023 20:11:42 +1100 Subject: [PATCH] Make it neater. --- src/schoolClassroom.ts | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/src/schoolClassroom.ts b/src/schoolClassroom.ts index 42b5964..db54cf4 100644 --- a/src/schoolClassroom.ts +++ b/src/schoolClassroom.ts @@ -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) {