From e348b09f803f9f7c0d0d5cd8b3b42609eb4891c6 Mon Sep 17 00:00:00 2001 From: Anthony Berg Date: Thu, 4 Jan 2024 12:14:10 +0000 Subject: [PATCH] refactor(arabot): change comments to reflect the command --- src/commands/mod/warning/warnings.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/commands/mod/warning/warnings.ts b/src/commands/mod/warning/warnings.ts index c0dfc3d..a263d1a 100644 --- a/src/commands/mod/warning/warnings.ts +++ b/src/commands/mod/warning/warnings.ts @@ -79,7 +79,7 @@ export class WarningsCommand extends Command { }); } - // Non Application Command method of banning a user + // Non Application Command method for fetching warnings public async messageRun(message: Message, args: Args) { // Get arguments let user: User | undefined; @@ -148,14 +148,14 @@ export class WarningsCommand extends Command { return info; } - // Creates the embed to display the restrictions + // Creates an embed to display the warnings const embed = new EmbedBuilder() .setColor('#FF6700') .setTitle(`${warnings.length} restrictions for ${user.tag}`) .setThumbnail(user.displayAvatarURL()) .setFooter({ text: `ID: ${user.id}` }); - // Add up to 10 of the latest restrictions to the embed + // Add up to 10 of the latest warnings to the embed for ( let i = warnings.length > 10 ? warnings.length - 10 : 0; i < warnings.length;