mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-12-26 15:07:03 +01:00
Only act upon servers for channel create and remove
This commit is contained in:
parent
ff81c5009d
commit
a2f378da57
@ -170,10 +170,12 @@ class Titan(discord.Client):
|
|||||||
await self.socketio.on_guild_role_update(roleafter)
|
await self.socketio.on_guild_role_update(roleafter)
|
||||||
|
|
||||||
async def on_channel_delete(self, channel):
|
async def on_channel_delete(self, channel):
|
||||||
|
if channel.server:
|
||||||
await self.database.update_guild(channel.server)
|
await self.database.update_guild(channel.server)
|
||||||
await self.socketio.on_channel_delete(channel)
|
await self.socketio.on_channel_delete(channel)
|
||||||
|
|
||||||
async def on_channel_create(self, channel):
|
async def on_channel_create(self, channel):
|
||||||
|
if channel.server:
|
||||||
await self.database.update_guild(channel.server)
|
await self.database.update_guild(channel.server)
|
||||||
await self.socketio.on_channel_create(channel)
|
await self.socketio.on_channel_create(channel)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user