import { MetadataStorage , Modifier , DDiscord } from "../.." ; import { DSlash } from "../classes/DSlash" ; export function Description ( description ) ; export function Description ( description ) { return ( target , key , descriptor ) : void => { MetadataStorage . instance . addModifier ( Modifier . create < DSlash > ( async ( original ) => { original . description = description ; } , DSlash ) . decorate ( target . constructor , key , descriptor . value ) ) ; } ; }