Raw Dogged that custom shoutout event and made HelixRequest easier to handle universally

This commit is contained in:
DeSqBlocki
2025-02-08 13:42:18 +01:00
parent e499308e64
commit 0c6deae544
8 changed files with 165 additions and 62 deletions
+2 -2
View File
@@ -12,10 +12,10 @@ module.exports = (dClient) => {
const filePath = path.join(eventsPath, file)
const event = require(filePath)
if (event.once) {
dClient.once(event.name, (...args) => event.execute(...args, dClient))
dClient.once(event.name, (...args) => event.execute(...args))
// added client to commomerate global usage
} else {
dClient.on(event.name, (...args) => event.execute(...args, dClient))
dClient.on(event.name, (...args) => event.execute(...args))
// added client to commomerate global usage
}
}