This commit is contained in:
DjDeveloperr 2021-04-25 16:28:48 +05:30
parent 332f0f2742
commit 1beccb57ba

View file

@ -42,8 +42,12 @@ let commands: SlashCommandsManager
*
* @param options Initialization options
*/
export function init(options: { env: boolean }): void
export function init(options: { publicKey: string; token?: string }): void
export function init(options: { env: boolean; path?: string }): void
export function init(options: {
publicKey: string
token?: string
path?: string
}): void
export function init(options: DeploySlashInitOptions): void {
if (client !== undefined) throw new Error('Already initialized')
if (options.env === true) {