diff --git a/components-jsx/ComponentMessage.tsx b/components-jsx/ComponentMessage.tsx index f9a7dd0..f722ba1 100644 --- a/components-jsx/ComponentMessage.tsx +++ b/components-jsx/ComponentMessage.tsx @@ -1,14 +1,26 @@ -import { CreateMessageOptions, EditMessageOptions, MessageComponent, MessageFlags } from "oceanic.js"; +import { + CreateMessageOptions, + EditMessageOptions, + InteractionOptions, + MessageComponent, + MessageFlags +} from "oceanic.js"; import { childrenToArray } from "./utils"; type MessageOptions = CreateMessageOptions | EditMessageOptions; -export type ComponentMessageProps = MessageOptions & { children: MessageComponent[]; }; +export type ComponentMessageProps = MessageOptions & { + children: MessageComponent[]; +}; -export function ComponentMessage({ children, flags, ...props }: ComponentMessageProps): MessageOptions { - return { - flags: MessageFlags.IS_COMPONENTS_V2 | (flags ?? 0), - components: childrenToArray(children), - ...props - }; +export function ComponentMessage({ + children, + flags, + ...props +}: ComponentMessageProps): MessageOptions { + return { + flags: MessageFlags.IS_COMPONENTS_V2 | (flags ?? 0), + components: childrenToArray(children), + ...props + }; } diff --git a/src/Constants.ts b/src/Constants.ts index b0d4873..1a07fff 100644 --- a/src/Constants.ts +++ b/src/Constants.ts @@ -1,6 +1,10 @@ export const Constants = { PENDING_CHANNEL_ID: "1370539719842070683", REJECTION_CHANNEL_ID: "1371073658403164261", + REVIEWER_ROLE_ID: "1375617676139040909", + MOD_ROLE_ID: "1370539692143153152", + MANAGER_ROLE_ID: "1370539689659863091", + OWNER_ID: "886685857560539176", COLORS: { NEW_REQ: 0xaaaaff, BAD: 0xffaaaa, diff --git a/src/components/ApplicationContent.tsx b/src/components/ApplicationContent.tsx index 97a14c8..1ae1ac3 100644 --- a/src/components/ApplicationContent.tsx +++ b/src/components/ApplicationContent.tsx @@ -1,5 +1,5 @@ import { TextDisplay } from "components-jsx/TextDisplay"; -import { Response } from "~/types"; +import { Response } from "~/utils/types"; export function ApplicationContent(props: { response: Response; diff --git a/src/components/PendingApplicationMessage.tsx b/src/components/PendingApplicationMessage.tsx index e5f6565..80ebe71 100644 --- a/src/components/PendingApplicationMessage.tsx +++ b/src/components/PendingApplicationMessage.tsx @@ -5,16 +5,19 @@ import { Container } from "components-jsx/Container"; import { Divider } from "components-jsx/Divider"; import { TextDisplay } from "components-jsx/TextDisplay"; import { ButtonStyles, User as OUser } from "oceanic.js"; -import { Response } from "~/types"; +import { Response } from "~/utils/types"; import { User } from "./User"; import { Constants } from "~/Constants"; import { ApplicationContent } from "./ApplicationContent"; +import { StringSelect } from "components-jsx/StringSelect"; +import { rejectReasons } from "~/utils/rejectReasons"; export function PendingApplicationMessage(props: { id: string; user: OUser; response: Response; locked?: boolean; + threadID: string; }) { const { id, user, response } = props; const locked = props.locked || false; @@ -30,83 +33,84 @@ export function PendingApplicationMessage(props: { - - - - ### Details -
- {response.details} -
- - - - - - - - - - - - - + + +