Advertisement
lord_shadow

Untitled

Jan 11th, 2024
1,209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import { discordClient, robloxClient, robloxGroup } from '../../main';
  2. import { CommandContext } from '../../structures/addons/CommandAddons';
  3. import { Command } from '../../structures/Command';
  4. import { config } from '../../config';
  5. import { getLinkedRobloxUser } from '../../handlers/accountLinks';
  6. import { ActionRowBuilder, ButtonBuilder, ButtonStyle, EmbedBuilder, ModalBuilder, TextInputBuilder, TextInputStyle, Interaction, ModalActionRowComponentBuilder, ChatInputCommandInteraction, TextChannel } from 'discord.js';
  7. import { greenColor, infoIconUrl, mainColor, redColor, xmarkIconUrl } from '../../handlers/locale';
  8. import { Modal } from 'discord-modals';
  9. import noblox from 'noblox.js';
  10.  
  11. class NewVerifyCommand extends Command {
  12.     constructor() {
  13.         super({
  14.             trigger: 'test',
  15.             description: 'Verify your Roblox account by adding specific emojis to your Roblox description.',
  16.             type: 'ChatInput',
  17.             module: 'verification',
  18.             args: [],
  19.         });
  20.     }
  21.  
  22.     async run(ctx: CommandContext) {
  23.  
  24.         const modal = new ModalBuilder()
  25.         .setCustomId('verify')
  26.         .setTitle('Verification')
  27.  
  28.         const textInput = new TextInputBuilder()
  29.         .setCustomId('verify2')
  30.         .setPlaceholder('Enter your Roblox username')
  31.         .setLabel('Roblox Username')
  32.         .setStyle(TextInputStyle.Short)
  33.         .setRequired(true);
  34.  
  35.         const firstactionrow = new ActionRowBuilder<ModalActionRowComponentBuilder>().addComponents(textInput);
  36.  
  37.         modal.addComponents(firstactionrow);
  38.  
  39.         await ctx.showModal(modal);
  40.  
  41.     }
  42. }
  43. export default NewVerifyCommand;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement