FridayNightFunkinBoyfriendBot/CommandModules/command_source.js

21 lines
527 B
JavaScript
Raw Normal View History

2023-12-17 14:55:27 -05:00
class CommandSource {
constructor (player, sources, hash = false, owner = false, discordMessageEvent = null, consoleOnly = sources) {
this.player = player
this.sources = sources
this.hash = hash
this.owner = owner
this.consoleOnly = consoleOnly
this.discordMessageEvent = discordMessageEvent
this.displayName = player
}
sendFeedback () {}
sendError (message) {
this.sendFeedback([{ text: '', color: 'red' }, message], false)
}
}
module.exports = CommandSource