qxb3
qxb3
Explore posts from servers
SIASapphire - Imagine a framework
Created by qxb3 on 12/1/2022 in #sapphire-support
sapphireplugin-subcommands can't catch error?
^ this code doesnt throw any error
10 replies
SIASapphire - Imagine a framework
Created by qxb3 on 12/1/2022 in #sapphire-support
sapphireplugin-subcommands can't catch error?
Any invalid code doesnt throw any error when i use it Example Code:
const { Subcommand } = require('@sapphire/plugins-subcommand')

class PingCommand extends Subcommand {
constructor(context, options) {
super(context, {
...options,
subcommands: [
{ name: 'add', messageRun: 'add' }
]
})
}

add() {
nonExistingFunc()
jdkdkd
dkdkkd
}
}

module.exports = PingCommand
const { Subcommand } = require('@sapphire/plugins-subcommand')

class PingCommand extends Subcommand {
constructor(context, options) {
super(context, {
...options,
subcommands: [
{ name: 'add', messageRun: 'add' }
]
})
}

add() {
nonExistingFunc()
jdkdkd
dkdkkd
}
}

module.exports = PingCommand
10 replies