Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import { discordClient, robloxClient, robloxGroup } from '../../main';
- import { CommandContext } from '../../structures/addons/CommandAddons';
- import { Command } from '../../structures/Command';
- import { config } from '../../config';
- import { getLinkedRobloxUser } from '../../handlers/accountLinks';
- import { ActionRowBuilder, ButtonBuilder, ButtonStyle, EmbedBuilder, ModalBuilder, TextInputBuilder, TextInputStyle, Interaction, ModalActionRowComponentBuilder, ChatInputCommandInteraction, TextChannel } from 'discord.js';
- import { greenColor, infoIconUrl, mainColor, redColor, xmarkIconUrl } from '../../handlers/locale';
- import { Modal } from 'discord-modals';
- import noblox from 'noblox.js';
- class NewVerifyCommand extends Command {
- constructor() {
- super({
- trigger: 'test',
- description: 'Verify your Roblox account by adding specific emojis to your Roblox description.',
- type: 'ChatInput',
- module: 'verification',
- args: [],
- });
- }
- async run(ctx: CommandContext) {
- const modal = new ModalBuilder()
- .setCustomId('verify')
- .setTitle('Verification')
- const textInput = new TextInputBuilder()
- .setCustomId('verify2')
- .setPlaceholder('Enter your Roblox username')
- .setLabel('Roblox Username')
- .setStyle(TextInputStyle.Short)
- .setRequired(true);
- const firstactionrow = new ActionRowBuilder<ModalActionRowComponentBuilder>().addComponents(textInput);
- modal.addComponents(firstactionrow);
- await ctx.showModal(modal);
- }
- }
- export default NewVerifyCommand;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement