completionId: cgen-84c31bf656474bc891fd5c5f5e2492bd
cgen-84c31bf656474bc891fd5c5f5e2492bd
This commit is contained in:
parent
30cee3f627
commit
ec34f45c10
1 changed files with 2 additions and 2 deletions
|
|
@ -141,13 +141,13 @@ export default async function handler(req: VercelRequest, res: VercelResponse) {
|
|||
process.env.SUPABASE_SERVICE_ROLE || "",
|
||||
);
|
||||
|
||||
const discordId = interaction.member?.user?.id;
|
||||
const discordId = interaction.user?.id || interaction.member?.user?.id;
|
||||
|
||||
if (!discordId) {
|
||||
return res.status(200).json({
|
||||
type: 4,
|
||||
data: {
|
||||
content: "❌ Could not get your Discord ID",
|
||||
content: "❌ Could not get your Discord ID. Please try again.",
|
||||
flags: 64,
|
||||
},
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue