Skip to content

Commit

Permalink
feat: disallow bots in g-spy
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperchupuDev committed Sep 14, 2021
1 parent 46f3ed7 commit 3bfb865
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion commands/bot/g-spy.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module.exports = {
const member = userId ? await message.guild.members.fetch(userId).catch(() => null) : null;


if (!member || userId === message.author.id || userId === client.user.id) {
if (!member || userId === message.author.id || member.user.bot) {
return message.channel.send({
embeds: [{
title: 'Invalid User',
Expand Down
2 changes: 1 addition & 1 deletion interactions/commands/g-spy.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module.exports = {
async execute(client, interaction) {
const member = interaction.options.getMember('user');

if (!member || member.id === interaction.user.id || member.id === client.user.id) {
if (!member || member.id === interaction.user.id || member.user.bot) {
return interaction.reply({
embeds: [{
title: 'Invalid User',
Expand Down

0 comments on commit 3bfb865

Please sign in to comment.