feat: include message context (if any) when reporting user

This commit is contained in:
Paul Makles
2023-05-31 12:06:31 +01:00
parent 7e87265ccb
commit 00708bb8f4
4 changed files with 9 additions and 1 deletions

View File

@@ -41,6 +41,7 @@ const MessageContainer = styled.div`
*/
export default function ReportContent({
target,
messageId,
...props
}: ModalProps<"report">) {
const client = useClient();
@@ -124,6 +125,7 @@ export default function ReportContent({
? "User"
: "Server",
report_reason: reason as any,
message_id: messageId,
},
additional_context,
});

View File

@@ -182,6 +182,7 @@ export type Modal = {
| {
type: "report";
target: Server | User | Message;
messageId?: string;
}
| {
type: "report_success";