fix(bot): 🐛 Webhooks not being found.
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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