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
gdude
gdude6mo 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
ShaunOP6mo ago
I'm not sure I understand My production bot which runs the same codebase works, the only difference is no defaultGuild is set
gdude
gdude6mo ago
this is how it's set
No description
gdude
gdude6mo 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
ShaunOP6mo ago
It works on my production bot
No description
Shaun
ShaunOP6mo ago
But doesn't work on my test bo
No description
gdude
gdude6mo ago
user comands can't be run from the slash command interface
gdude
gdude6mo ago
you have to right-click a user
No description
Shaun
ShaunOP6mo ago
I don't understand? how come I can run them on my prod bot?
gdude
gdude6mo ago
how did you define it?
Shaun
ShaunOP6mo ago
unsafeSlashCommand
gdude
gdude6mo 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
ShaunOP6mo ago
I thought a user command is a slash command I run as a user As opposed to a guild command
gdude
gdude6mo ago
which you also run as a user?
Shaun
ShaunOP6mo 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
gdude
gdude6mo 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
ShaunOP6mo 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
gdude
gdude6mo 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
ShaunOP6mo ago
Can I only DM the bot because I share a guild with it
gdude
gdude6mo ago
yes bots can't have friends, so you have to share a guild
Shaun
ShaunOP6mo ago
Aw man I thought that's what a user app was
Want results from more Discord servers?
Add your server