brad
brad
SIASapphire - Imagine a framework
Created by brad on 5/19/2023 in #sapphire-support
Preconditions not running
I'm new to sapphire, but I can't seem to figure out preconditions. The code i have in /listeners/commands/commandDenied
const { Listener } = require("@sapphire/framework")

module.exports = class extends Listener {
run(error, cmd) {
const { message, command } = cmd
return message.reply({ content: error.message })
}
}
const { Listener } = require("@sapphire/framework")

module.exports = class extends Listener {
run(error, cmd) {
const { message, command } = cmd
return message.reply({ content: error.message })
}
}
It blocks the command from being ran, but doesnt send a message or log anything.
6 replies