import { MetadataStorage , DSlash , Modifier , DDiscord } from "../.." ; export function Name ( name ) ; export function Name ( name ) { return ( target , key ? , descriptor ? ) : void => { MetadataStorage . instance . addModifier ( Modifier . create < DSlash | DDiscord > ( async ( original ) => { original . name = name ; } , DSlash , DDiscord ) . decorateUnknown ( target , key , descriptor ) ) ; } ; }