FridayNightFunkinBoyfriendBot/CommandModules/command_source.js

27 lines
641 B
JavaScript
Raw Normal View History

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-24 12:11:42 -05:00
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-24 12:11:42 -05:00
2023-12-17 14:55:27 -05:00
this.owner = owner
this.consoleOnly = consoleOnly
this.discordMessageEvent = discordMessageEvent
2023-12-24 12:11:42 -05:00
2023-12-17 14:55:27 -05:00
}
sendFeedback () {}
sendError (message) {
this.sendFeedback([{ text: '', color: 'red' }, message], false)
}
}
module.exports = CommandSource