fix(bot): 🐛 Webhooks not being found.

This commit is contained in:
Nyeki.py
2024-11-01 16:32:07 -03:00
parent 00ad045a35
commit ee306a6f1f
2 changed files with 23 additions and 7 deletions
+3
View File
@@ -30,6 +30,9 @@ spec:
containers:
- name: postgres
image: postgres:latest # Standard PostgreSQL image
args:
- -c
- max_connections=2000
env:
- name: POSTGRES_DB
value: "payphone"
+20 -7
View File
@@ -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()