fix: correct announcement API endpoint and add optional content fields #20

Merged
naomi merged 4 commits from fix/announce into main 2026-03-23 15:59:42 -07:00
Showing only changes of commit 0db0d220cc - Show all commits
+1 -1
View File
@@ -97,7 +97,7 @@ export const handleAnnouncementModal = async(
const categoryValues = interaction.fields.getStringSelectValues("category");
const type = categoryValues[0] ?? "company";
const response = await fetch("https://hikari.nhcarrigan.com/announcement", {
const response = await fetch("https://hikari.nhcarrigan.com/api/announcement", {
body: JSON.stringify({ content, type }),
headers: {
// eslint-disable-next-line @typescript-eslint/naming-convention -- HTTP header capitalisation convention