Use typing indicator while updating

This commit is contained in:
Adam Goldsmith 2021-05-09 09:58:31 -04:00
parent cd7c979d10
commit 0a147407c1

View File

@ -78,6 +78,8 @@ class ArkhamDBUpdater(commands.Bot):
await message.delete()
async def update_channel_latest_decks(self, channel: discord.TextChannel) -> None:
print(f'Running update in channel {channel.guild} - {channel.name}')
async with channel.typing():
deck_ids = await self.gather_deck_ids(channel)
latest_decks = await self.arkhamdb_client.get_latest_decks(deck_ids)