LogoAntiRaid

@antiraid-ext/events/discord/Message

API reference for @antiraid-ext/events/discord/Message

@antiraid-ext/events/discord/Message

Functions

onMessage

Message

Run an event on message. This is a helper function that extracts the useful data from the event and calls the callback.

Function Signature
--- Message
---
--- Run an event on message. This is a helper function that extracts the useful data from the event and calls the callback.
function onMessage(event: Primitives.Event, callback: (msg: discordgateway.MessageCreatePayload) -> ()) end

Arguments

event

Primitives.Event

callback

Function Signature
callback: (msg: discordgateway.MessageCreatePayload) -> ()

Arguments

msg

discordgateway.MessageCreatePayload

Last updated on