import { Interaction } from 'detritus-client' ; import { ApplicationCommandOptionTypes } from 'detritus-client/lib/constants' ; import { Formatter , Parameters } from '../../../../utils' ; import { BaseInteractionCommandOption } from '../../basecommand' ; export class TagRandomCommand extends BaseInteractionCommandOption { description = 'Show a random tag' ; name = 'random' ; constructor ( ) { super ( { options : [ { name : 'arguments' , description : 'Tag\'s Arguments' , default : [ ] , value : Parameters . stringArguments , } , { name : 'content' , description : 'Match the tag\'s content' , value : Parameters . string ( { maxLength : 1000 } ) , } , { name : 'name' , description : 'Match the tag\'s name' , value : Parameters . string ( { maxLength : 64 } ) , } , { name : 'user' , description : 'User to list tags for' , type : ApplicationCommandOptionTypes . USER , } , ] , } ) ; } async run ( context , args ) { return Formatter . Commands . TagRandom . createMessage ( context , args ) ; } }