mirror of
https://gitdab.com/cadence/out-of-your-element.git
synced 2025-09-11 04:33:02 +02:00
Per-guild presence sync settings
On by default for existing and small guilds. Off for new large guilds. Can be toggled either way.
This commit is contained in:
parent
69e3d64905
commit
0f435e930e
8 changed files with 56 additions and 7 deletions
|
@ -374,11 +374,12 @@ module.exports = {
|
|||
},
|
||||
|
||||
/**
|
||||
* @param {string} userID
|
||||
* @param {string} [status]
|
||||
* @param {import("./discord-client")} client
|
||||
* @param {DiscordTypes.GatewayPresenceUpdateDispatchData} data
|
||||
*/
|
||||
async onPresenceUpdate(userID, status) {
|
||||
async onPresenceUpdate(client, data) {
|
||||
const status = data.status
|
||||
if (!status) return
|
||||
setPresence.setPresence(userID, status)
|
||||
setPresence.setPresence(data.user.id, data.guild_id, status)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue