channels: send full guild info when deleting a channel

This commit is contained in:
NotNite 2021-09-23 21:48:24 -04:00
parent 4f543442b9
commit a2a85ef621
No known key found for this signature in database
GPG Key ID: BD91A5402CCEB08A
1 changed files with 2 additions and 2 deletions

View File

@ -91,7 +91,7 @@ async def _update_guild_chan_text(guild_id: int, channel_id: int):
# at least one of the fields were updated, # at least one of the fields were updated,
# dispatch GUILD_UPDATE # dispatch GUILD_UPDATE
guild = await app.storage.get_guild(guild_id) guild = await app.storage.get_guild_full(guild_id)
await app.dispatcher.guild.dispatch(guild_id, ("GUILD_UPDATE", guild)) await app.dispatcher.guild.dispatch(guild_id, ("GUILD_UPDATE", guild))
@ -102,7 +102,7 @@ async def _update_guild_chan_voice(guild_id: int, channel_id: int):
if res == "UPDATE 0": if res == "UPDATE 0":
return return
guild = await app.storage.get_guild(guild_id) guild = await app.storage.get_guild_full(guild_id)
await app.dispatcher.dispatch(guild_id, ("GUILD_UPDATE", guild)) await app.dispatcher.dispatch(guild_id, ("GUILD_UPDATE", guild))