Merge branch 'main' into feat/password-reset
This commit is contained in:
@@ -61,4 +61,15 @@ function announce({ title, excerpt, url, imageUrl }) {
|
||||
return call('/internal/announce', { method: 'POST', body: { title, excerpt, url, imageUrl } })
|
||||
}
|
||||
|
||||
module.exports = { pushConfig, getStatus, announce }
|
||||
// Site -> bot: an approved appeal wants the underlying Discord action reversed
|
||||
// (unban for a 'ban', clear the timeout for a 'mute'). Best-effort like every
|
||||
// call here — never throws, so an approved appeal still resolves when the bot is
|
||||
// down (the caller records reversal_status='failed' from `ok:false`).
|
||||
function reverseModAction({ discordUserId, actionType, appealId }) {
|
||||
return call('/internal/mod-reverse', {
|
||||
method: 'POST',
|
||||
body: { discord_user_id: discordUserId, action_type: actionType, appeal_id: appealId },
|
||||
})
|
||||
}
|
||||
|
||||
module.exports = { pushConfig, getStatus, announce, reverseModAction }
|
||||
|
||||
Reference in New Issue
Block a user