invokedCommandGuildId

The id of the guild the invoked command is registered to, null if the command is global.

This is unrelated to the difference between GlobalInteractions and GuildInteractions, a global command can produce both GlobalInteractions and GuildInteractions.