From 4f8cec53319d6ccd25aa9b8abcd63da242166f0b Mon Sep 17 00:00:00 2001 From: smyalygames Date: Sat, 5 Nov 2022 23:55:29 +0000 Subject: [PATCH] refactor(arabot): change addField to addFields --- src/commands/mod/sus.ts | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/commands/mod/sus.ts b/src/commands/mod/sus.ts index ba7f24a..c55a1f0 100644 --- a/src/commands/mod/sus.ts +++ b/src/commands/mod/sus.ts @@ -228,10 +228,10 @@ class SusCommand extends Command { mod = modGuildMember!.displayName; } // Add sus note to embed - noteEmbed.addField( - `Sus ID: ${notes[i].id} | Moderator: ${mod} | Date: `, - notes[i].note, - ); + noteEmbed.addFields({ + name: `Sus ID: ${notes[i].id} | Moderator: ${mod} | Date: `, + value: notes[i].note, + }); } // Sends the notes to the user @@ -301,10 +301,10 @@ class SusCommand extends Command { .setColor('#ff0000') .setTitle(`Sus note for ${userName}`) .setThumbnail(user.avatarURL()!) // TODO avatar does not show when run - .addField( - `ID: ${noteId} | Moderator: ${modName} | Date: `, - note.note, - ); + .addFields({ + name: `ID: ${noteId} | Moderator: ${modName} | Date: `, + value: note.note, + }); // Create buttons to delete or cancel the deletion const buttons = new MessageActionRow() @@ -423,10 +423,10 @@ class SusCommand extends Command { mod = modGuildMember.displayName; } // Add sus note to embed - noteEmbed.addField( - `Sus ID: ${notes[i].id} | Moderator: ${mod} | Date: `, - notes[i].note, - ); + noteEmbed.addFields({ + name: `Sus ID: ${notes[i].id} | Moderator: ${mod} | Date: `, + value: notes[i].note, + }); } // Create buttons to delete or cancel the deletion