Skip to content
Advertisement

discord.py – Getting Guild ID on ‘on_guild_join’ event

I’m working on a simple Discord Bot with Python. I just want to save guild id on a SQLite folder, I can’t get guild id. I’m new on that database things. Parameters on event doesn’t work like:

JavaScript

Advertisement

Answer

on_guild_join only has the parameter of Guild and not Context.

JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement