So I'm making a discord bot, and I want it to be able to obtain the guild ID of the guild where a command was issued. How would I go about implementing this? I tried using bot.guilds, but I need a method of nailing down the exact id.
Have you tried doing message.guild.id ?
That should return the guild id for the guild the command was executed in.
Getting current guild id for instance