oploffty
oploffty
DIAdiscord.js - Imagine an app
Created by oploffty on 11/12/2024 in #djs-questions
Could someone help me with a problem I’m getting
I used discord.js website to make it
18 replies
DIAdiscord.js - Imagine an app
Created by oploffty on 11/12/2024 in #djs-questions
Could someone help me with a problem I’m getting
Yes
18 replies
DIAdiscord.js - Imagine an app
Created by oploffty on 11/12/2024 in #djs-questions
Could someone help me with a problem I’m getting
I have
18 replies
DIAdiscord.js - Imagine an app
Created by oploffty on 11/12/2024 in #djs-questions
Could someone help me with a problem I’m getting
The problem is there is a name but it still dosnt work
18 replies
DIAdiscord.js - Imagine an app
Created by oploffty on 11/12/2024 in #djs-questions
Could someone help me with a problem I’m getting
No description
18 replies
DIAdiscord.js - Imagine an app
Created by oploffty on 11/12/2024 in #djs-questions
Could someone help me with a problem I’m getting
Okay
18 replies
DIAdiscord.js - Imagine an app
Created by oploffty on 11/12/2024 in #djs-questions
Could someone help me with a problem I’m getting
const { EmbedBuilder, SlashCommandBuilder } = require('discord.js');

module.exports = {
data: new SlashCommandBuilder()
.setName('mason-mum')
.setDescription('sends message about masons mum')
.addStringOption(option =>
option.setName('username')
.setDescription('Enter a username from this server')
.setRequired(true)
.addChoices(
{ name: 'Masons mum', value: 'mason_user_id' }, // user id goes here
{ name: 'Louies mum', value: 'louie_user_id' }, // user id goes here
{ name: 'Charlie w dad', value: 'charlie_w_user_id' }, // user id goes here
{ name: 'Kumials dad', value: 'kumial_user_id' }, // user id goes here
{ name: 'Archies mum', value: 'archie_user_id'}, // user id goes here
{ name: 'Armandas mum', value: 'armandas_user_id'} // user id goes here
)),
async execute(interaction) {
const username = interaction.options.getString('username');
const userId = username;

await interaction.reply(`Hey guess what! <@${interaction.user.id}>! thinks <@${userId}>! is a baddie`);
},
};
const { EmbedBuilder, SlashCommandBuilder } = require('discord.js');

module.exports = {
data: new SlashCommandBuilder()
.setName('mason-mum')
.setDescription('sends message about masons mum')
.addStringOption(option =>
option.setName('username')
.setDescription('Enter a username from this server')
.setRequired(true)
.addChoices(
{ name: 'Masons mum', value: 'mason_user_id' }, // user id goes here
{ name: 'Louies mum', value: 'louie_user_id' }, // user id goes here
{ name: 'Charlie w dad', value: 'charlie_w_user_id' }, // user id goes here
{ name: 'Kumials dad', value: 'kumial_user_id' }, // user id goes here
{ name: 'Archies mum', value: 'archie_user_id'}, // user id goes here
{ name: 'Armandas mum', value: 'armandas_user_id'} // user id goes here
)),
async execute(interaction) {
const username = interaction.options.getString('username');
const userId = username;

await interaction.reply(`Hey guess what! <@${interaction.user.id}>! thinks <@${userId}>! is a baddie`);
},
};
18 replies
DIAdiscord.js - Imagine an app
Created by oploffty on 11/12/2024 in #djs-questions
Could someone help me with a problem I’m getting
I’ll show code
18 replies
DIAdiscord.js - Imagine an app
Created by oploffty on 11/12/2024 in #djs-questions
Could someone help me with a problem I’m getting
It lists all the commands that are online and then it says unable to load that command
18 replies
DIAdiscord.js - Imagine an app
Created by oploffty on 11/12/2024 in #djs-questions
Could someone help me with a problem I’m getting
No
18 replies