don't break on channels that don't exist

This commit is contained in:
ubq323 2022-01-19 18:40:14 +00:00
parent 3c3ffbb036
commit a7ddbc9b07
1 changed files with 3 additions and 1 deletions

View File

@ -203,7 +203,9 @@ When you want to end a call, use hangup.
chs = []
for dest in eventbus.find_all_destinations(('discord',ch.id)):
if dest[0] == 'discord':
chs.append(self.bot.get_channel(dest[1]))
c = await self.bot.fetch_channel(dest[1])
if c is not None:
chs.append(c)
found = await self._find_recent(chs, query)