How to access GuildId with global commands? #2447
-
I am fairly new to Serenity, and I am wondering about something. When I register a slash command as a guild command, I always get a Long story short, how would I get the Oh, also, is it possible to get |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Beta Was this translation helpful? Give feedback.
CommandData::guild_id
represents which guild the command was registered to. It is not the guild where the interaction was used. You should inspect the interaction's data for that instead.The same applies for the user's ID.