Ꮢ
Explore posts from servers
DIAdiscord.js - Imagine an app
Created by on 9/20/2024 in #djs-questions
Cannot access localizations
async execute(interaction) {
const { client } = interaction;
let commands = await client.application.commands.fetch({ withLocalizations: true });

if (interaction.guild) {
const guildCommands = await interaction.guild.commands.fetch({ withLocalizations: true });
commands = new Map([...commands, ...guildCommands]);
}
async execute(interaction) {
const { client } = interaction;
let commands = await client.application.commands.fetch({ withLocalizations: true });

if (interaction.guild) {
const guildCommands = await interaction.guild.commands.fetch({ withLocalizations: true });
commands = new Map([...commands, ...guildCommands]);
}
8 replies
DIAdiscord.js - Imagine an app
Created by on 9/20/2024 in #djs-questions
Cannot access localizations
I didn't realize the additional options existed. Thank you for telling me, it worked fine :MinoriLove:
8 replies
DIAdiscord.js - Imagine an app
Created by on 9/20/2024 in #djs-questions
Cannot access localizations
I did the following and the descriptionLocalizations was null. fetching but not accessible?
commands.forEach(command => {
if (command.name !== 'help') {
console.log('command: ', command);
commands.forEach(command => {
if (command.name !== 'help') {
console.log('command: ', command);
command: <ref *1> ApplicationCommand {
id: '1072261659718074368',
applicationId: '1072198324934938676',
guild: null,
guildId: null,
permissions: ApplicationCommandPermissionsManager {
manager: [Circular *1],
guild: null,
guildId: null,
commandId: '1072261659718074368'
},
type: 1,
nsfw: false,
name: 'search',
nameLocalizations: null,
nameLocalized: null,
description: 'Searches for elements by the specified search character',
descriptionLocalizations: null,
descriptionLocalized: null,
...
command: <ref *1> ApplicationCommand {
id: '1072261659718074368',
applicationId: '1072198324934938676',
guild: null,
guildId: null,
permissions: ApplicationCommandPermissionsManager {
manager: [Circular *1],
guild: null,
guildId: null,
commandId: '1072261659718074368'
},
type: 1,
nsfw: false,
name: 'search',
nameLocalizations: null,
nameLocalized: null,
description: 'Searches for elements by the specified search character',
descriptionLocalizations: null,
descriptionLocalized: null,
...
8 replies
DIAdiscord.js - Imagine an app
Created by on 9/20/2024 in #djs-questions
Cannot access localizations
No description
8 replies