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

Commit

Permalink
debug Case 4
Browse files Browse the repository at this point in the history
  • Loading branch information
RadiatedExodus committed Feb 6, 2024
1 parent 5f76513 commit 179e844
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/commands/Moderation/Case.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const Command: MeteoriumCommand = {
content: `Case ${CaseId} does not exist.`,
});

const TargetUser = await client.users.fetch(Case.TargetUserId).catch(() => null);
//const TargetUser = await client.users.fetch(Case.TargetUserId).catch(() => null);

/*
const GuildSetting = await client.Database.guild.findUnique({ where: { GuildId: interaction.guild.id } });
Expand Down Expand Up @@ -88,9 +88,7 @@ export const Command: MeteoriumCommand = {

const Embed = new MeteoriumEmbedBuilder(undefined, interaction.user)
.setAuthor({
name: `Case: #${CaseId} | ${Case.Action} | ${
TargetUser != null ? TargetUser.username : Case.TargetUserId
}`,
name: `Case: #${CaseId} | ${Case.Action} | ${Case.TargetUserId}`,
// iconURL: TargetUser != null ? TargetUser.displayAvatarURL({ extension: "png" }) : undefined,
})
.addFields(
Expand Down

0 comments on commit 179e844

Please sign in to comment.