how does defaultGuild interact with user apps?

I can't seem to test user commands with defaultGuild being set, is there a workaround for this?
21 Replies
g
g16mo ago
The guild ID property is actually in the ApplicationCommand type, so if it's working for slash commands and not for user commands, you're probably doing something wrong (or discord cache murdered you again) remember to make sure you loaded the extension
Shaun
ShaunOP16mo ago
I'm not sure I understand My production bot which runs the same codebase works, the only difference is no defaultGuild is set
g
g16mo ago
this is how it's set
No description
g
g16mo ago
the interaction-based commands inherit that so there's no difference in behaviour between them there's no magic, right? did you run into an error or something?
Shaun
ShaunOP16mo ago
It works on my production bot
No description
Shaun
ShaunOP16mo ago
But doesn't work on my test bo
No description
g
g16mo ago
user comands can't be run from the slash command interface
g
g16mo ago
you have to right-click a user
No description
Shaun
ShaunOP16mo ago
I don't understand? how come I can run them on my prod bot?
g
g16mo ago
how did you define it?
Shaun
ShaunOP16mo ago
unsafeSlashCommand
g
g16mo ago
then that's a slash command, yeah not a user command why did you call it a user command? what are you trying to do?
Shaun
ShaunOP16mo ago
I thought a user command is a slash command I run as a user As opposed to a guild command
g
g16mo ago
which you also run as a user?
Shaun
ShaunOP16mo ago
I just have a unsafeSlashCommand that's it IDK all the terminology If defaultGuild is set, I cannot run my slash command from my bot directly, it has to be in the guild
g
g16mo ago
let's get the terminology correct so we're both talking about the same thing guild commands are commands registered to a specific guild, and may only be run in that guild - all slash commands with a guild specified (including the default guild) can only be run on a guild global commands can be run on any guild with the bot added, or in DMs with the bot
Shaun
ShaunOP16mo ago
Okay I understand, so I need to not set it a as a guild command then, it will be slow to test, but it's the only way to test it
g
g16mo ago
it's worth noting that I don't know whether Kord supports user-installable apps yet if that's what you had in mind
Shaun
ShaunOP16mo ago
Can I only DM the bot because I share a guild with it
g
g16mo ago
yes bots can't have friends, so you have to share a guild
Shaun
ShaunOP16mo ago
Aw man I thought that's what a user app was

Did you find this page helpful?