I have created a discord bot which can be invited to guilds and has slash commands. Everything is working fine if a user uses the command in server. But I want to get the guild if user uses that command in bot DM.How can I do that?
I have tried using message.guild but that is always returning None.