Unknown Interaction
module.exports = {
data: new SlashCommandBuilder()
.setName('hxbuy')
.setDescription('This is used by the administration when a user have bought Hx Cheats')
.addUserOption(option =>
option.setName('user')
.setDescription('The user who bought the HX Cheats.')
.setRequired(true))
.addStringOption(option =>
option.setName('key')
.setDescription('The HX Cheats key it will provide the customer with (Lifetime / Month / Week / 1day)')
.setRequired(true)),
async execute(interaction, client) {
const member = interaction.member;
if (member.roles.cache.has('1089455359921508412')) {
const channel = interaction.channel;
const UserInput = interaction.options.getUser('user') ?? 'No user was provided!'; // The error is here
const Key = interaction.options.getString('key') ?? 'No key was provided!';
interaction.reply({ content: 'The key and message was successfully send!', ephemeral: true })module.exports = {
data: new SlashCommandBuilder()
.setName('hxbuy')
.setDescription('This is used by the administration when a user have bought Hx Cheats')
.addUserOption(option =>
option.setName('user')
.setDescription('The user who bought the HX Cheats.')
.setRequired(true))
.addStringOption(option =>
option.setName('key')
.setDescription('The HX Cheats key it will provide the customer with (Lifetime / Month / Week / 1day)')
.setRequired(true)),
async execute(interaction, client) {
const member = interaction.member;
if (member.roles.cache.has('1089455359921508412')) {
const channel = interaction.channel;
const UserInput = interaction.options.getUser('user') ?? 'No user was provided!'; // The error is here
const Key = interaction.options.getString('key') ?? 'No key was provided!';
interaction.reply({ content: 'The key and message was successfully send!', ephemeral: true })





