Minor bug fix
This commit is contained in:
@@ -29,7 +29,8 @@ module.exports = {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
const user = interaction.user;
|
const user1 = interaction.options.getUser('user');
|
||||||
|
const user = interaction.guild.members.cache.get(user1.id);
|
||||||
const slothPixel = "https://api.slothpixel.me/api/players/";
|
const slothPixel = "https://api.slothpixel.me/api/players/";
|
||||||
const guildAPI = "https://api.slothpixel.me/api/guilds/"
|
const guildAPI = "https://api.slothpixel.me/api/guilds/"
|
||||||
const mojangAPI = "https://api.mojang.com/user/profile/"
|
const mojangAPI = "https://api.mojang.com/user/profile/"
|
||||||
|
|||||||
@@ -25,7 +25,8 @@ module.exports = {
|
|||||||
|
|
||||||
await interaction.deferReply();
|
await interaction.deferReply();
|
||||||
|
|
||||||
const user = interaction.user;
|
const user1 = interaction.options.getUser('user');
|
||||||
|
const user = interaction.guild.members.cache.get(user1.id);
|
||||||
const fullUsername = user.username + "#" + user.discriminator
|
const fullUsername = user.username + "#" + user.discriminator
|
||||||
const ign = interaction.options.getString('ign');
|
const ign = interaction.options.getString('ign');
|
||||||
const mojang = "https://api.mojang.com/users/profiles/minecraft/"
|
const mojang = "https://api.mojang.com/users/profiles/minecraft/"
|
||||||
|
|||||||
Reference in New Issue
Block a user