Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
eYuM-coder committed Aug 30, 2024
1 parent d4a009c commit 6af44be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/slashCommands/fun/dmoptin.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ module.exports = {
.setDescription("Opts out of the DM command"),
async execute(interaction) {
try {
const client = interaction.client;
const logging = await Logging.findOne({ guildId: interaction.guild.id });

const dmsystem = await dmSystem.findOne({ userId: interaction.author.id });
Expand Down Expand Up @@ -49,7 +48,7 @@ module.exports = {
.catch(() => { interaction.channel.send({ content: "Error deleting message." }) });
}
} catch (err) {
console.error();
interaction.reply({ content: `This command cannot be used in Direct Messages.`, ephemeral: true });
}
}
};
3 changes: 1 addition & 2 deletions src/slashCommands/fun/dmoptout.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ module.exports = {
.setDescription("Opts out of the DM command"),
async execute(interaction) {
try {
const client = interaction.client;
const logging = await Logging.findOne({ guildId: interaction.guild.id });

const dmsystem = await dmSystem.findOne({ userId: interaction.author.id });
Expand Down Expand Up @@ -49,7 +48,7 @@ module.exports = {
.catch(() => { interaction.channel.send({ content: "Error deleting message." }) });
}
} catch (err) {
console.error();
interaction.reply({ content: `This command cannot be used in Direct Messages.`, ephemeral: true });
}
}
};

0 comments on commit 6af44be

Please sign in to comment.