import { Command , CommandClient } from 'detritus-client' ; import { Permissions } from 'detritus-client/lib/constants' ; import { CommandTypes } from '../../../constants' ; import { Formatter } from '../../../utils' ; import { BaseCommand } from '../basecommand' ; export const COMMAND_NAME = 'prefixes clear' ; export default class PrefixesClearCommand extends BaseCommand { constructor ( client ) { super ( client , { name : COMMAND_NAME , aliases : [ 'prefix clear' ] , disableDm : true , metadata : { description : 'Clear all custom prefixes from the guild. (Bot Mentions will always override this)' , examples : [ COMMAND_NAME , ] , type : CommandTypes . SETTINGS , usage : `${ COMMAND_NAME }` , } , permissionsClient : [ Permissions . EMBED_LINKS ] , permissions : [ Permissions . MANAGE_GUILD ] , } ) ; } async run ( context ) { return Formatter . Commands . SettingsPrefixesClear . createMessage ( context ) ; } }