completionId: cgen-ca8395e936724ad7b287aa5e42ec2da9
cgen-ca8395e936724ad7b287aa5e42ec2da9
This commit is contained in:
parent
b523a86c53
commit
55d1ccbca7
1 changed files with 2 additions and 3 deletions
|
|
@ -106,7 +106,6 @@ const handleDiscordInteractions = (
|
||||||
// /verify command - Generate verification code and link
|
// /verify command - Generate verification code and link
|
||||||
if (commandName === "verify") {
|
if (commandName === "verify") {
|
||||||
try {
|
try {
|
||||||
const supabase = createSupabaseClient();
|
|
||||||
const discordId = interaction.member?.user?.id;
|
const discordId = interaction.member?.user?.id;
|
||||||
|
|
||||||
if (!discordId) {
|
if (!discordId) {
|
||||||
|
|
@ -125,7 +124,7 @@ const handleDiscordInteractions = (
|
||||||
const expiresAt = new Date(Date.now() + 15 * 60 * 1000).toISOString(); // 15 min
|
const expiresAt = new Date(Date.now() + 15 * 60 * 1000).toISOString(); // 15 min
|
||||||
|
|
||||||
// Store verification code in Supabase
|
// Store verification code in Supabase
|
||||||
const { error } = await supabase
|
const { error } = await adminSupabase
|
||||||
.from("discord_verifications")
|
.from("discord_verifications")
|
||||||
.insert([
|
.insert([
|
||||||
{
|
{
|
||||||
|
|
@ -231,7 +230,7 @@ const handleDiscordInteractions = (
|
||||||
return res.json({
|
return res.json({
|
||||||
type: 4,
|
type: 4,
|
||||||
data: {
|
data: {
|
||||||
content: `✅ **Discord Roles**\n\nYour assigned AeThex roles are shown below.\n\n📊 [View Full Profile](https://aethex.dev/profile)`,
|
content: `✅ **Discord Roles**\n\nYour assigned AeThex roles are shown below.\n\n<EFBFBD><EFBFBD><EFBFBD><EFBFBD> [View Full Profile](https://aethex.dev/profile)`,
|
||||||
flags: 0,
|
flags: 0,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue