import RootLayout from "@rollem/ui/components/layouts/RootLayout"; import { Card, Grid, CardContent, CardHeader, Theme, Avatar, Link, Button, CardActions, } from "@mui/material"; import makeStyles from '@mui/styles/makeStyles'; import fetch from 'isomorphic-unfetch'; import useSWR from "swr"; import { RollemSessionData } from "@rollem/ui/lib/api/old.withSession"; import React from "react"; const API_URL = '/api/auth/discord/getData'; async function fetcher(url) { const res = await fetch(url); const json = await res.json(); return json; } const useStyles = makeStyles((theme: Theme) => ({ icon: { paddingRight: "0.25em", }, homeWrapper: { display: "flex", flexFlow: "row nowrap", alignItems: "center", }, profileImage: { maxHeight: "48px", marginRight: ".25em", }, discrimator: { opacity: ".5", }, gridWrapper: { marginTop: "2em", marginBottom: "2em", }, cardContent: { textAlign: "center", }, heading: { fontSize: theme.typography.pxToRem(15), flexBasis: '33.33%', flexShrink: 0, display: "flex", flexFlow: "row nowrap", alignItems: "center", }, secondaryHeading: { fontSize: theme.typography.pxToRem(15), color: theme.palette.text.secondary, }, accordionDetails: { display: "block", "& pre": { maxHeight: "80vh", overflow: "auto", backgroundColor: theme.palette.getContrastText(theme.palette.grey[400]), color: theme.palette.grey[400], } }, index: { listStyle: "none", margin: "0", padding: "0", display: "flex", flexFlow: "row", "& > li": { padding: "0.5em", display: "flex", flexFlow: "row nowrap", alignItems: "center", } } }), ); export default function AccountDelete() { const classes = useStyles(); const { data, error } = useSWR(API_URL, fetcher); const avatar = data?.discord?.user?.avatar; const userId = data?.discord?.user?.id; const username = data?.discord?.user?.username; const discriminator = data?.discord?.user?.discriminator; const guildCount = data?.discord?.guilds?.length; const [expanded, setExpanded] = React.useState(false); const handleChange = (panel: string) => (event: React.ChangeEvent<{}>, isExpanded: boolean) => { setExpanded(isExpanded ? panel : false); }; return ( ( } title={ <>{username}#{discriminator} } subheader={`In ${guildCount} Guilds`}/>

You are now logged in.

Delete Account

You may delete your account at any time.

Make sure to get any information you want saved from the Account Summary page, first.

What will be deleted immediately

  • Your Discord ID to Rollem ID table entry
  • Any user settings
  • Any user notes or variables

What will be deleted soon

  • Any mention of your IDs in the logs (7-30 days)

What won't be deleted

  • Channel/Guild Notes
  • Channel/Guild Settings
  • Channel/Guild Variables
) ); }