bot slash command cannot sync to Desktop client #4932
Unanswered
ericzyq
asked this question in
API Feature Requests & Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
After I deployed a new bot which registered slash commands, those commands will appear in the auto-completion of Mobile App, but not Desktop App. However, after I manually synced those commands within "Server settings => Integration => Bot command", they show up within Desktop App auto-completion.
The way I register the commands are like:
const { SlashCommandBuilder } = require('@discordjs/builders');
const { REST } = require('@discordjs/rest');
const { Routes } = require('discord-api-types/v9');
....
rest = new REST({ version: '9' }).setToken(token);
tt = await rest.put(Routes.applicationGuildCommands(client.user.id, guildID), { body: commands });
Beta Was this translation helpful? Give feedback.
All reactions