mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 08:47:22 +00:00
fix: Closes #3011 guide fixes
This commit is contained in:
@@ -114,7 +114,7 @@ try {
|
||||
// OPTIONAL: Runs the raw event handler if you need it
|
||||
bot.events.raw(bot, req.body.payload, req.body.shardId);
|
||||
// Runs the event handler if available
|
||||
if (message.t) bot.events.[snakeToCamelCase(message.t)]?.(req.body.payload, req.body.shardId);
|
||||
if (message.t) bot.events.[snakeToCamelCase(message.t.toLowerCase())]?.(req.body.payload, req.body.shardId);
|
||||
|
||||
res.status(200).json({ success: true })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user