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

Commit

Permalink
try to debug Case
Browse files Browse the repository at this point in the history
  • Loading branch information
RadiatedExodus committed Feb 5, 2024
1 parent f0b56fc commit a421b30
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/commands/Moderation/Case.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const Command: MeteoriumCommand = {
),
async Callback(interaction, client) {
if (!interaction.member.permissions.has("ViewAuditLog"))
return await interaction.editReply({
return await interaction.reply({
content: "You do not have permission to view a user's punishment/case.",
});

Expand All @@ -27,6 +27,7 @@ export const Command: MeteoriumCommand = {

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

/*
const GuildSetting = await client.Database.guild.findUnique({ where: { GuildId: interaction.guild.id } });
if (GuildSetting && GuildSetting.LoggingChannelId != "")
client.channels
Expand Down Expand Up @@ -83,6 +84,7 @@ export const Command: MeteoriumCommand = {
});
})
.catch(() => null);
*/

const Embed = new MeteoriumEmbedBuilder(undefined, interaction.user)
.setAuthor({
Expand Down

0 comments on commit a421b30

Please sign in to comment.