Fix channel edits on webhooks sending two requests

This commit is contained in:
Rapptz committed 2023-04-27 18:05:43 -04:00
1 parent c57d488ca6
commit da10065c19
2 files changed
+2 -4

No files matched your search

+1 -2
View File
@@ -1511,8 +1511,7 @@ class Webhook(BaseWebhook):
proxy_auth=self.proxy_auth,
reason=reason,
)
if prefer_auth and self.auth_token:
elif prefer_auth and self.auth_token:
data = await adapter.edit_webhook(
self.id,
self.auth_token,