The weeb for the next gen discord boat - Wamellow wamellow.com
bot discord
3
fork

Configure Feed

Select the types of activity you want to include in your feed.

add notifications regex filter

Luna 392de923 daa273f2

+15 -3
+13 -3
app/dashboard/[guildId]/notifications/page.tsx
··· 15 15 import MessageCreatorEmbed from "@/components/embed-creator"; 16 16 import MultiSelectMenu from "@/components/inputs/multi-select-menu"; 17 17 import SelectMenu from "@/components/inputs/select-menu"; 18 + import TextInput from "@/components/inputs/text-input"; 18 19 import { ScreenMessage } from "@/components/screen-message"; 19 20 import SadWumpusPic from "@/public/sad-wumpus.gif"; 20 21 import { type ApiV1GuildsModulesNotificationsGetResponse, NotificationFlags, NotificationType } from "@/typings"; ··· 187 188 onSave={(o) => editItem("roleId", o.value as string)} 188 189 showClear 189 190 /> 190 - {item.type === NotificationType.Bluesky && ( 191 - <MultiSelectMenu 191 + 192 + {item.type === NotificationType.Bluesky 193 + ? <MultiSelectMenu 192 194 className="md:w-1/2 w-full" 193 195 name="Filter" 194 196 url={url + "/" + item.id} ··· 201 203 editItem("flags", flags.reduce((a, b) => a | b, 0)); 202 204 }} 203 205 /> 204 - )} 206 + : <TextInput 207 + className="md:w-1/2 w-full" 208 + name="Regex filter" 209 + url={url + "/" + item.id} 210 + dataName="regex" 211 + description="Uploads that match the provided regex will be ignored." 212 + defaultState={item.regex || ""} 213 + /> 214 + } 205 215 </div> 206 216 207 217 <MessageCreatorEmbed
+2
typings.ts
··· 408 408 409 409 type: NotificationType; 410 410 flags: number; 411 + regex: string | null; 412 + 411 413 creatorId: string; 412 414 413 415 message: {