Prettier format pending files
This commit is contained in:
parent
b5f02a999a
commit
97b659d48a
1 changed files with 10 additions and 4 deletions
|
|
@ -141,7 +141,8 @@ export default async function handler(req: VercelRequest, res: VercelResponse) {
|
|||
process.env.SUPABASE_SERVICE_ROLE || "",
|
||||
);
|
||||
|
||||
const discordId = interaction.user?.id || interaction.member?.user?.id;
|
||||
const discordId =
|
||||
interaction.user?.id || interaction.member?.user?.id;
|
||||
|
||||
if (!discordId) {
|
||||
return res.status(200).json({
|
||||
|
|
@ -235,8 +236,12 @@ export default async function handler(req: VercelRequest, res: VercelResponse) {
|
|||
}
|
||||
|
||||
if (commandName === "profile") {
|
||||
const username = interaction.user?.username || interaction.member?.user?.username || "Unknown";
|
||||
const discordId = interaction.user?.id || interaction.member?.user?.id || "Unknown";
|
||||
const username =
|
||||
interaction.user?.username ||
|
||||
interaction.member?.user?.username ||
|
||||
"Unknown";
|
||||
const discordId =
|
||||
interaction.user?.id || interaction.member?.user?.id || "Unknown";
|
||||
|
||||
return res.status(200).json({
|
||||
type: 4,
|
||||
|
|
@ -248,7 +253,8 @@ export default async function handler(req: VercelRequest, res: VercelResponse) {
|
|||
}
|
||||
|
||||
if (commandName === "unlink") {
|
||||
const discordId = interaction.user?.id || interaction.member?.user?.id || "Unknown";
|
||||
const discordId =
|
||||
interaction.user?.id || interaction.member?.user?.id || "Unknown";
|
||||
|
||||
return res.status(200).json({
|
||||
type: 4,
|
||||
|
|
|
|||
Loading…
Reference in a new issue