remove debug

This commit is contained in:
SowinskiBraeden committed 2022-05-06 13:58:29 -07:00
1 parent 8ace046edf
commit a1edacd4db
1 file changed
-2
-2
View File
@@ -30,7 +30,6 @@ module.exports = {
let targetUser = await client.dbo.collection("users").findOne({"user.discord.id":targetUserID}).then(user => user);
// This lame line of code to get username without ping on discord
const User = client.users.cache.get(targetUserID);
console.log(targetUserID, targetUser);
if (!targetUser) return message.channel.send(`Cannot find **${args[0].value}** ${message.author}`);
if (targetUser.user.activeCommunity!=user.user.activeCommunity) {
return message.channel.send(`You are not in the same community as \`${User.tag}\` ${message.author}`);
@@ -73,7 +72,6 @@ module.exports = {
let targetUser = await client.dbo.collection("users").findOne({"user.discord.id":targetUserID}).then(user => user);
// This lame line of code to get username without ping on discord
const User = client.users.cache.get(targetUserID);
console.debug(targetUserID, targetUser, User);
if (!targetUser) return interaction.send(`Cannot find **${args[0].value}** <@${interaction.member.user.id}>`);
if (targetUser.user.activeCommunity!=user.user.activeCommunity) {
return interaction.send(`You are not in the same community as \`${User.tag}\` <@${interaction.member.user.id}>`);