test(bot): fix test type (#2839)

This commit is contained in:
Jonathan Ho
2023-03-25 10:35:47 -05:00
committed by GitHub
parent 206bae473b
commit a6c3ffe0ee
+2 -2
View File
@@ -17,12 +17,12 @@ describe('[Bot] Delete any guild owned guilds', () => {
events: {
message: async (shard, data) => {
// TRIGGER RAW EVENT
bot.events.raw?.(data, shard)
bot.events.raw?.(data, shard.id)
if (!data.t) return
// RUN DISPATCH CHECK
await bot.events.dispatchRequirements?.(data, shard)
await bot.events.dispatchRequirements?.(data, shard.id)
bot.events[
data.t.toLowerCase().replace(/_([a-z])/g, function (g) {
return g[1].toUpperCase()