feat: make createGuild in api composable return GuildResponse or undefined instead of void

This commit is contained in:
SauceyRed 2025-07-13 04:10:15 +02:00
parent a164f89042
commit d43105ab58
Signed by: sauceyred
GPG key ID: 2BF92EB6D8A5CCA7

View file

@ -53,7 +53,7 @@ export const useApi = () => {
return await fetchWithApi(`/channels/${channelId}/messages/${messageId}`);
}
async function createGuild(name: string): Promise<void> {
async function createGuild(name: string): Promise<GuildResponse | undefined> {
return await fetchWithApi(`/guilds`, { method: "POST", body: { name } });
}