diff --git a/src/plugins/WebhookManager/index.tsx b/src/plugins/WebhookManager/index.tsx index bf6860f0f..30d8bd9ce 100644 --- a/src/plugins/WebhookManager/index.tsx +++ b/src/plugins/WebhookManager/index.tsx @@ -166,7 +166,7 @@ export default definePlugin({ else { Native.executeWebhook("" + webhookUrl, { content: webhookMessage, - username: webhookUsername ?? fetch("" + webhookUrl).then(response => response.json().then(response => { response.name; })), + username: webhookUsername ?? fetch("" + webhookUrl).then(response => response.json().then(response => { webhookUsername = response.name; })), avatar_url: "", tts: findOption(option, "tts") });