mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 08:47:22 +00:00
test(bot): fix test type (#2839)
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user