deleteSlash

Deletes in a slash command

public async deleteSlash(name: string, guilds?: Snowflake[]): Promise<false | ApplicationCommand<{ guild: GuildResolvable; }> | ApplicationCommand<{}>[] | undefined>

  • name: slash command name

  • guilds: guilds where the slash command will be deleted

client.delelteSlash("ping", ["34543843829755", "5748329579845"])

Last updated

Was this helpful?