From d43105ab58e2ade828494fb1b6902b56f9e9d70b Mon Sep 17 00:00:00 2001 From: SauceyRed Date: Sun, 13 Jul 2025 04:10:15 +0200 Subject: [PATCH] feat: make createGuild in api composable return GuildResponse or undefined instead of void --- composables/api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composables/api.ts b/composables/api.ts index dc2fe4f..0b438a6 100644 --- a/composables/api.ts +++ b/composables/api.ts @@ -53,7 +53,7 @@ export const useApi = () => { return await fetchWithApi(`/channels/${channelId}/messages/${messageId}`); } - async function createGuild(name: string): Promise { + async function createGuild(name: string): Promise { return await fetchWithApi(`/guilds`, { method: "POST", body: { name } }); }