21 lines
527 B
JavaScript
21 lines
527 B
JavaScript
|
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
|