Trooper
Trooper
DIAdiscord.js - Imagine an app
Created by Trooper on 1/23/2025 in #djs-questions
Slash commands not being created
Thanks so much! Sorry for the inconvenience
20 replies
DIAdiscord.js - Imagine an app
Created by Trooper on 1/23/2025 in #djs-questions
Slash commands not being created
That worked!
20 replies
DIAdiscord.js - Imagine an app
Created by Trooper on 1/23/2025 in #djs-questions
Slash commands not being created
I got very confused with that whole thing
20 replies
DIAdiscord.js - Imagine an app
Created by Trooper on 1/23/2025 in #djs-questions
Slash commands not being created
Oh that must be it!
20 replies
DIAdiscord.js - Imagine an app
Created by Trooper on 1/23/2025 in #djs-questions
Slash commands not being created
Collection(1) [Map] {
'1331920108490326056' => <ref *1> ApplicationCommand {
id: '1331920108490326056',
applicationId: '1331900440740364360',
guild: null,
guildId: null,
permissions: ApplicationCommandPermissionsManager {
manager: [Circular *1],
guild: null,
guildId: null,
commandId: '1331920108490326056'
},
type: 1,
nsfw: false,
name: 'ping',
nameLocalizations: null,
nameLocalized: null,
description: 'Replies with Pong!',
descriptionLocalizations: null,
descriptionLocalized: null,
options: [],
defaultMemberPermissions: null,
dmPermission: true,
integrationTypes: [ 1 ],
contexts: null,
version: '1331920108490326057'
}
}
Collection(1) [Map] {
'1331920108490326056' => <ref *1> ApplicationCommand {
id: '1331920108490326056',
applicationId: '1331900440740364360',
guild: null,
guildId: null,
permissions: ApplicationCommandPermissionsManager {
manager: [Circular *1],
guild: null,
guildId: null,
commandId: '1331920108490326056'
},
type: 1,
nsfw: false,
name: 'ping',
nameLocalizations: null,
nameLocalized: null,
description: 'Replies with Pong!',
descriptionLocalizations: null,
descriptionLocalized: null,
options: [],
defaultMemberPermissions: null,
dmPermission: true,
integrationTypes: [ 1 ],
contexts: null,
version: '1331920108490326057'
}
}
20 replies
DIAdiscord.js - Imagine an app
Created by Trooper on 1/23/2025 in #djs-questions
Slash commands not being created
I am not sure if this matters but guildid is null
20 replies
DIAdiscord.js - Imagine an app
Created by Trooper on 1/23/2025 in #djs-questions
Slash commands not being created
Interesting
20 replies
DIAdiscord.js - Imagine an app
Created by Trooper on 1/23/2025 in #djs-questions
Slash commands not being created
Sure, one moment
20 replies
DIAdiscord.js - Imagine an app
Created by Trooper on 1/23/2025 in #djs-questions
Slash commands not being created
It outputs fine
20 replies
DIAdiscord.js - Imagine an app
Created by Trooper on 1/23/2025 in #djs-questions
Slash commands not being created
I did and it's correct, unless it has to be written in a different way. I tried both just a numeral and as a "" string in the .env file
20 replies
DIAdiscord.js - Imagine an app
Created by Trooper on 1/23/2025 in #djs-questions
Slash commands not being created
Yeah
20 replies
DIAdiscord.js - Imagine an app
Created by Trooper on 1/23/2025 in #djs-questions
Slash commands not being created
I did invite it with permissions for bot and applications.commands
20 replies
DIAdiscord.js - Imagine an app
Created by Trooper on 1/23/2025 in #djs-questions
Slash commands not being created
Yes and it's online. I also disconnected and waited for it to come offline before reloading and still nothing
20 replies
DIAdiscord.js - Imagine an app
Created by Trooper on 1/23/2025 in #djs-questions
Slash commands not being created
It just doesn't appear
20 replies
DIAdiscord.js - Imagine an app
Created by Trooper on 1/23/2025 in #djs-questions
Slash commands not being created
Nope. Already checked the integrations tab too
20 replies
DIAdiscord.js - Imagine an app
Created by Trooper on 1/23/2025 in #djs-questions
Slash commands not being created
Here it is!
const { SlashCommandBuilder } = require('discord.js');

module.exports = {
data: new SlashCommandBuilder()
.setName('ping')
.setDescription('Replies with Pong!'),
async execute(interaction) {
await interaction.reply('Pong!');
},
};
const { SlashCommandBuilder } = require('discord.js');

module.exports = {
data: new SlashCommandBuilder()
.setName('ping')
.setDescription('Replies with Pong!'),
async execute(interaction) {
await interaction.reply('Pong!');
},
};
20 replies
DIAdiscord.js - Imagine an app
Created by Trooper on 1/23/2025 in #djs-questions
Slash commands not being created
No description
20 replies