on_guild_join needs 2 parameters.

This commit is contained in:
alwayscompiling
2022-07-29 22:45:21 -04:00
parent 04051eeacc
commit a66bc4982f
+1 -1
View File
@@ -16,7 +16,7 @@ class BotPresence(commands.Cog, name="Bot Presence"):
self.bot = bot self.bot = bot
@commands.Cog.listener() @commands.Cog.listener()
async def on_guild_join(self): async def on_guild_join(self, guild: nextcord.Guild): # pylint: disable=unused-argument
"""Listener for Guild Join. Updated presence on guild join.""" """Listener for Guild Join. Updated presence on guild join."""
await self.change_presence() await self.change_presence()