2023-12-17 14:55:27 -05:00
|
|
|
class CommandSource {
|
2023-12-20 11:54:03 -05:00
|
|
|
constructor (player, sources, hash, owner, discordMessageEvent = null, consoleOnly, name, profile, bot) {//this worked just fine in v4.3.4
|
|
|
|
//does it get defined in discord thingy wherever dat is
|
|
|
|
// sus
|
|
|
|
|
2023-12-17 14:55:27 -05:00
|
|
|
this.player = player
|
2023-12-20 11:54:03 -05:00
|
|
|
this.name = player
|
2023-12-17 14:55:27 -05:00
|
|
|
this.sources = sources
|
2023-12-20 11:54:03 -05:00
|
|
|
this.profile = bot
|
2023-12-17 14:55:27 -05:00
|
|
|
this.hash = hash
|
2023-12-20 11:54:03 -05:00
|
|
|
this.trustLevel
|
2023-12-17 14:55:27 -05:00
|
|
|
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
|