def on_guild_remove(self, g: Guild):
if g.id in self.refuse_notify_left:
# refuse to notify that we got removed from the guild, because the "left bot collection"/"left blacklisted"
# monitor message already does that
self.refuse_notify_left.remove(g.id)
return
fields = self.guild_fields(g)
await self.monitor_send(title='\N{OUTBOX TRAY} Removed from guild', fields=fields, color=Colors.ORANGE)
await self.bot.redis.incr('stats:guilds:removes')
评论列表
文章目录