Removing an event

pull/9/head
sgoudham 4 years ago
parent 027010e903
commit b8f6c8e255

@ -907,9 +907,15 @@ class Moderation(Cog):
# TODO: REMEMBER TO TRY AND LOG CHANNEL OVERWRITES # TODO: REMEMBER TO TRY AND LOG CHANNEL OVERWRITES
@Cog.listener()
def setup(bot):
bot.add_cog(Moderation(bot))
"""
@Cog.listener()
async def on_guild_update(self, before, after): async def on_guild_update(self, before, after):
"""Logging guild updates""" Logging guild updates
if modlogs := self.bot.get_modlog_for_guild(after.guild.id): if modlogs := self.bot.get_modlog_for_guild(after.guild.id):
modlogs_channel = self.bot.get_channel(modlogs) modlogs_channel = self.bot.get_channel(modlogs)
@ -919,13 +925,6 @@ class Moderation(Cog):
or before.afk_channel != after.afk.channel: or before.afk_channel != after.afk.channel:
pass pass
def setup(bot):
bot.add_cog(Moderation(bot))
"""
@Cog.listener() @Cog.listener()
async def on_guild_integrations_update(self, guild): async def on_guild_integrations_update(self, guild):
Logging updates to integrations Logging updates to integrations

Loading…
Cancel
Save