2023-04-25 20:06:08 +00:00
|
|
|
// @ts-check
|
|
|
|
|
2023-04-30 12:57:30 +00:00
|
|
|
// Grab Discord events we care about for the bridge, check them, and pass them on
|
|
|
|
|
|
|
|
const sendMessage = require("./actions/send-message")
|
|
|
|
|
2023-04-25 20:06:08 +00:00
|
|
|
module.exports = {
|
|
|
|
/**
|
|
|
|
* @param {import("./discord-client")} client
|
|
|
|
* @param {import("discord-api-types/v10").GatewayMessageCreateDispatchData} message
|
|
|
|
*/
|
|
|
|
onMessageCreate(client, message) {
|
|
|
|
console.log(message)
|
|
|
|
console.log(message.guild_id)
|
|
|
|
console.log(message.member)
|
2023-04-30 12:57:30 +00:00
|
|
|
sendMessage(message)
|
2023-04-25 20:06:08 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param {import("./discord-client")} client
|
|
|
|
* @param {import("discord-api-types/v10").GatewayMessageReactionAddDispatchData} data
|
|
|
|
*/
|
|
|
|
onReactionAdd(client, data) {
|
|
|
|
console.log(data)
|
|
|
|
return {}
|
|
|
|
}
|
|
|
|
}
|