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