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
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
I'm not sure I understand
My production bot which runs the same codebase works, the only difference is no defaultGuild is set
this is how it's set
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?
It works on my production bot
But doesn't work on my test bo
user comands can't be run from the slash command interface
you have to right-click a user
I don't understand? how come I can run them on my prod bot?
how did you define it?
unsafeSlashCommand
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?
I thought a user command is a slash command I run as a user
As opposed to a guild command
which you also run as a user?
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
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
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
it's worth noting that I don't know whether Kord supports user-installable apps yet
if that's what you had in mind
Can I only DM the bot because I share a guild with it
yes
bots can't have friends, so you have to share a guild
Aw man
I thought that's what a user app was