Closed copyNdpaste closed 2 years ago
It looks like the user doesn't have the "Use Application Commands" permission in the server; this is not related to the bot.
@advaith1 How to user add "Use Application Commands" permission on server? :)
You can modify role permissions in Server Settings: https://support.discord.com/hc/en-us/articles/206029707-Setting-Up-Permissions-FAQ
for Discord support go to https://dis.gd/support
@advaith1 Thank you! I found the solution. I checked use application command
on permission
of channel edit
. I tried to check use application command on server configure beside server name, but it not worked.
this one
not this
Description
I created slash command bot with
bot
,applications.commands
scopes. And create slash command for guild, and command not showed so I create commands as application scope. And still not showingI tried to kick out my bot and re enter url but not worked...
What is the solution plz! Thank you
Steps to Reproduce
bot
,applications.commands
and enter url then select server.SERVER MEMBERS INTENT
,MESSAGE CONTENT INTENT
INTERACTIONS ENDPOINT URL
ashttps://xyz.amazonaws.com/interactions/
const korCommandList = { γ γ γΉ: { description: "μμΉ μμ΅λ₯ μλ΅", }, μμ΅λ₯ : { description: "μμΉ μμ΅λ₯ μλ΅", }, μμΉμμ΅λ₯ : { description: "μμΉ μμ΅λ₯ μλ΅", }, }; const enCommandList = { depositapy: { description: "response deposit yield", }, yield: { description: "response deposit yield", }, apy: { description: "response deposit yield", }, deposityield: { description: "response deposit yield", }, };
client.on("ready", async () => { const promises = []; const objs = Object.assign(korCommandList, enCommandList); console.log(
process.env.DISCORD_BOT_CLIENT_ID ${process.env.DISCORD_BOT_CLIENT_ID}
); console.log(process.env.DISCORD_GUILD_ID ${process.env.DISCORD_GUILD_ID}
); for (const key in objs) { const p = await client.api .applications(process.env.DISCORD_BOT_CLIENT_ID) // .guilds(process.env.DISCORD_GUILD_ID) .commands.post({ data: { name: key, description: objs[key].description, }, }); promises.push(p); } const result = await Promise.all(promises); console.log(result);client.destroy(); });
client.login(process.env.DISCORD_BOT_TOKEN);