feat: make createGuild in api composable return GuildResponse or undefined instead of void
This commit is contained in:
parent
a164f89042
commit
d43105ab58
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ export const useApi = () => {
|
||||||
return await fetchWithApi(`/channels/${channelId}/messages/${messageId}`);
|
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 } });
|
return await fetchWithApi(`/guilds`, { method: "POST", body: { name } });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue