guild-settings #35

Merged
sauceyred merged 42 commits from guild-settings into main 2025-07-13 02:26:37 +00:00
Showing only changes of commit 94a37340f6 - Show all commits

View file

@ -41,6 +41,10 @@ export const useApi = () => {
return await fetchWithApi(`/channels/${channelId}/messages/${messageId}`);
}
async function createGuild(name: string): Promise<void> {
return await fetchWithApi(`/guilds`, { method: "POST", body: { name } });
}
return {
fetchGuilds,
fetchGuild,
@ -51,6 +55,7 @@ export const useApi = () => {
fetchUsers,
fetchUser,
fetchMessages,
fetchMessage
fetchMessage,
createGuild,
}
}