Yahia
Yahia
DIAdiscord.js - Imagine an app
Created by Yahia on 2/1/2024 in #djs-questions
Getting error in every interaction
@arcticwolvinny ❄ 🌈 fuck you bitch
8 replies
DIAdiscord.js - Imagine an app
Created by Yahia on 2/1/2024 in #djs-questions
Getting error in every interaction
Fuck LGBTQIA
8 replies
DIAdiscord.js - Imagine an app
Created by Yahia on 2/1/2024 in #djs-questions
Getting error in every interaction
i tried this earlier and nothing worked
8 replies
DIAdiscord.js - Imagine an app
Created by Yahia on 2/1/2024 in #djs-questions
Getting error in every interaction
const { SlashCommandBuilder, ChatInputCommandInteraction, Client, PermissionsBitField } = require('discord.js');

module.exports = {
data: new SlashCommandBuilder()
.setName('say')
.setDescription('Say anything you want')
.addStringOption(option =>
option
.setName('input')
.setDescription('The text or link you want me to say')
.setRequired(true)),


/**
*
* @param {ChatInputCommandInteraction} interaction
* @param {Client} client
*/
async execute(interaction, client) {
if(!interaction.member.permissions.has(PermissionsBitField.Flags.Administrator)){
interaction.reply({content :"**You must be an `ADMINISTRATOR`** :x:", ephemeral: true})
}else{
const s = interaction.options.getString('input');
interaction.reply(`${s}`)
}

},
};
const { SlashCommandBuilder, ChatInputCommandInteraction, Client, PermissionsBitField } = require('discord.js');

module.exports = {
data: new SlashCommandBuilder()
.setName('say')
.setDescription('Say anything you want')
.addStringOption(option =>
option
.setName('input')
.setDescription('The text or link you want me to say')
.setRequired(true)),


/**
*
* @param {ChatInputCommandInteraction} interaction
* @param {Client} client
*/
async execute(interaction, client) {
if(!interaction.member.permissions.has(PermissionsBitField.Flags.Administrator)){
interaction.reply({content :"**You must be an `ADMINISTRATOR`** :x:", ephemeral: true})
}else{
const s = interaction.options.getString('input');
interaction.reply(`${s}`)
}

},
};
8 replies