Skip to content

Commit

Permalink
Update suggestion.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Simpleboy353 committed Nov 27, 2022
1 parent 94484c8 commit 5fdddec
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions SlashCommands/Utility/suggestion.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ module.exports = {

let member = await interaction.guild.members.cache.find(user => user.id === idData.Suggester);

if (!member.permissions.has("ManageServer")) return interaction.followUp("Missing Permissions");

let suggester = await member.user.tag;

if (!suggester) suggester = "Unknown User";
Expand Down Expand Up @@ -139,6 +141,8 @@ module.exports = {

let user = await interaction.guild.members.cache.find(user => user.id === messageData.Suggester);

if (!user.permissions.has("ManageServer")) return interaction.followUp("Missing Permissions");

let smaker = await user.user.tag;

if (!smaker) smaker = "Unknown User";
Expand Down

0 comments on commit 5fdddec

Please sign in to comment.