fix(bot): 🐛 Webhooks not being found.
This commit is contained in:
@@ -786,13 +786,26 @@ class Calls(base.Cog):
|
||||
if replying_message is not None:
|
||||
replying_to_id = replying_message.id
|
||||
|
||||
webhook_message = await webhook.send(
|
||||
cleaned_content,
|
||||
username=call_rs.display_name,
|
||||
avatar_url=call_rs.display_avatar,
|
||||
embed=embed,
|
||||
wait=True,
|
||||
)
|
||||
try:
|
||||
webhook_message = await webhook.send(
|
||||
cleaned_content,
|
||||
username=call_rs.display_name,
|
||||
avatar_url=call_rs.display_avatar,
|
||||
embed=embed,
|
||||
wait=True,
|
||||
)
|
||||
|
||||
except errors.NotFound:
|
||||
other_channel.webhook_id = None
|
||||
other_channel.webhook_url = None
|
||||
|
||||
try:
|
||||
await dbutils.get_channel(
|
||||
await self.bot.get_or_fetch_channel(other_channel.id)
|
||||
)
|
||||
|
||||
finally:
|
||||
pass
|
||||
|
||||
pipe = self.bot.redis.pipeline()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user