import { MetadataStorage , DSlash , SlashParams } from "../.." ; export function Slash ( ) ; export function Slash ( name ) ; export function Slash ( name , params ) ; export function Slash ( name ? , params ? ) { return async ( target , key , descriptor ) => { name = name || key ; name = name . toLocaleLowerCase ( ) ; const slash = DSlash . create ( name , params ?. description , params ?. defaultPermission , params ?. guilds ) . decorate ( target . constructor , key , target [ key ] ) ; MetadataStorage . instance . addSlash ( slash ) ; } ; }