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.

remove some logging

Luna c08eba66 2d5e39b7

+6 -8
-1
app/(home)/debug/page.tsx
··· 47 47 for (const [key, value] of headers().entries()) { 48 48 headerList.push({ name: key, value }); 49 49 } 50 - console.log(headerList); 51 50 52 51 if (cookies().get("devTools")?.value !== "true") { 53 52 return (
+1 -1
app/dashboard/[guildId]/greeting/passport/page.tsx
··· 180 180 setPassport({ 181 181 ...passport, 182 182 punishment: o.value as ApiV1GuildsModulesPassportGetResponse["punishment"] 183 - }); console.log(o.value); 183 + }); 184 184 185 185 }} 186 186 />
-1
components/discord/markdown.tsx
··· 22 22 }: Props) { 23 23 24 24 function parseDiscordMarkdown(content: string) { 25 - console.log(content) 26 25 return content 27 26 .replace(/<(?!(?:[@#]|a:|:))/g, "&lt;") 28 27 .replaceAll("\n", "\n")
+2 -1
components/image-reduce-motion.tsx
··· 11 11 forceStatic?: boolean 12 12 } 13 13 14 - export default function ImageReduceMotion({ url, 14 + export default function ImageReduceMotion({ 15 + url, 15 16 size, 16 17 alt, 17 18 className,
+3 -4
utils/authorize-user.ts
··· 7 7 stateHook 8 8 }: { 9 9 stateHook: React.Dispatch<React.SetStateAction<"LOADING" | "ERRORED" | undefined>>; 10 - }): Promise<User | null> { 10 + }) { 11 11 stateHook(undefined); 12 12 13 13 const res = await fetch(`${process.env.NEXT_PUBLIC_API}/sessions`, { ··· 19 19 .then((res) => res.json()) 20 20 .catch(() => null) as User | RouteErrorResponse | null; 21 21 22 - if (res && "statusCode" in res) { 23 - // window.location.href = "/login"; 24 - console.log(res); 22 + if (res && "statusCode" in res && res.statusCode.toString().startsWith("4")) { 23 + window.location.href = "/login"; 25 24 return null; 26 25 } 27 26