Update verify command to assign Discord roles after linking

cgen-af7ed50540b94b45b38fc1c08bd1f574
This commit is contained in:
Builder.io 2025-11-08 13:40:50 +00:00
parent 0e33637b6e
commit c83b95ce70

View file

@ -5,13 +5,14 @@ const {
ButtonBuilder,
ButtonStyle,
} = require("discord.js");
const { syncRolesAcrossGuilds } = require("../utils/roleManager");
module.exports = {
data: new SlashCommandBuilder()
.setName("verify")
.setDescription("Link your Discord account to your AeThex account"),
async execute(interaction, supabase) {
async execute(interaction, supabase, client) {
await interaction.deferReply({ ephemeral: true });
try {