Hi! I'm learning PyCord, and I have this code:
@bot.event
async def on_message(message: discord.Message):
print(message.guild)
guildConfig = jsonHelper.getGuildConfig(str(message.guild.id))
But it keeps erroring out because message.guild.id doesn't exist. There's no "id". But the docs says that there is.
Am I doing something wrong? message.guild exists, but it only returns a string of the server name. There's no object.