mirror of
https://code.chipmunk.land/Parker2991/NitoriBot/
synced 2026-11-30 06:05:40 -05:00
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
|