最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

discord - Accesing Security Actions - Stack Overflow

programmeradmin0浏览0评论

I was wondering wether there is currently a way to acces the Security actions for a Guild via a bot, preferably through discordjs. I did not find any mention in the documentation though. Is there any way to change them?

The reason why I want to access them is to permanently pause DMs on a Guild, instead of just the 24 hour of blocking provided by Discord.

I was wondering wether there is currently a way to acces the Security actions for a Guild via a bot, preferably through discordjs. I did not find any mention in the documentation though. Is there any way to change them?

The reason why I want to access them is to permanently pause DMs on a Guild, instead of just the 24 hour of blocking provided by Discord.

Share Improve this question edited Feb 1 at 5:51 Se_008 asked Feb 1 at 5:43 Se_008Se_008 236 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 1

The API for Security Actions has not yet been published on Discord's API docs. You can find the documentation for the endpoint here:


Modify Guild Incident Actions

PUT /guilds/{guild.id}/incident-actions

Modifies the incident actions of the guild. Returns a 200 with the Incidents Data object for the guild. Requires the MANAGE_GUILD permission.


This API has been added to discord.js in PR #10727 and is expected to release in discord.js v15. If you need this feature ASAP, you can install the main or feat/incident-actions. Then, you can use Guild.setIncidentActions and have a cron job push the dmsDisabledUntil 24 hours forward every day.

发布评论

评论列表(0)

  1. 暂无评论