import { Command } from '@sapphire/framework';
export class KycCommand extends Command {
public constructor(context: Command.LoaderContext, options: Command.Options) {
super(context, {
...options,
enabled: true,
name: 'kyc',
description: 'Do Know-your-customer verification.',
});
}
public override registerApplicationCommands(registry: Command.Registry) {
registry.registerChatInputCommand((builder) =>
builder //
.setName(this.name)
.setDescription(this.description)
.addUserOption((option) =>
option //
.setName('ign')
.setDescription('Your Minecraft IGN')
.setRequired(true)
)
);
}
public override async chatInputRun(interaction: Command.ChatInputCommandInteraction) {
const mcIGN = interaction.options.getString('ign', true);
return await interaction.reply({
content: `MC Ign is: ${mcIGN}`,
});
}
}
import { Command } from '@sapphire/framework';
export class KycCommand extends Command {
public constructor(context: Command.LoaderContext, options: Command.Options) {
super(context, {
...options,
enabled: true,
name: 'kyc',
description: 'Do Know-your-customer verification.',
});
}
public override registerApplicationCommands(registry: Command.Registry) {
registry.registerChatInputCommand((builder) =>
builder //
.setName(this.name)
.setDescription(this.description)
.addUserOption((option) =>
option //
.setName('ign')
.setDescription('Your Minecraft IGN')
.setRequired(true)
)
);
}
public override async chatInputRun(interaction: Command.ChatInputCommandInteraction) {
const mcIGN = interaction.options.getString('ign', true);
return await interaction.reply({
content: `MC Ign is: ${mcIGN}`,
});
}
}