Skip to content
This repository has been archived by the owner on Jul 7, 2024. It is now read-only.

Commit

Permalink
fix: Review ackowledgements
Browse files Browse the repository at this point in the history
  • Loading branch information
Cpt-Dingus committed Nov 10, 2023
1 parent b8ddbf2 commit 77fb746
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/modules/note.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ const whois = new util.RootModule(
const targetId: string = args
.find(arg => arg.name === 'user')!
.value!.toString();
const member = await interaction.guild!.members.fetch(targetId).catch();
const member = await interaction.guild!.members.fetch(targetId);

const embed: EmbedBuilder = new EmbedBuilder()
.setColor(Colors.DarkBlue)
Expand Down Expand Up @@ -296,6 +296,8 @@ const whois = new util.RootModule(

// Finally, list notes
const record: UserRecord | null = await getRecord(member.user);
// Is left undefined if there aren't any notes, otherwise is used in the footer to list
// the amount of notes as well as any potential trimming that happened
let footerText;
let noteCount = 0;

Expand Down

0 comments on commit 77fb746

Please sign in to comment.