Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
RedGuy12 authored and github-actions[bot] committed Jul 20, 2023
1 parent 7547ec3 commit 227107c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions modules/punishments/warn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,9 +230,7 @@ export async function addStrikeBack(interaction: ButtonInteraction<CacheType>, i
strikeDatabase.data = strikeDatabase.data.map((toRemove) =>
id === toRemove.id ? { ...toRemove, removed: false } : toRemove,
);
const user =
(await client.users.fetch(strike.user).catch(() => {})) ??
`<@${strike.user}>`;
const user = (await client.users.fetch(strike.user).catch(() => {})) ?? `<@${strike.user}>`;
const { url: logUrl } = await interaction.reply({
fetchReply: true,
content: `${
Expand Down

0 comments on commit 227107c

Please sign in to comment.