Moderation

Run action

  • Needs the scope moderation:write.
  • Counts against the limit for moderation actions too.
post/v1/guilds/{guildID}/moderation/actions

Request

  • Base URL: https://api.galaxybot.app
  • URL: https://api.galaxybot.app/v1/guilds/{guildID}/moderation/actions
  • Auth: HTTP bearer

Path parameters

guildIDstring required

Request body

type'ban' | 'softban' | 'kick' | 'mute' | 'warn' | 'unban' | 'unmute' required
userIDstring required
reasonstring
durationinteger
deleteMessageSecondsinteger
executorIDstring

Response

Default Response

Changes

No recorded changes to this operation across all 1 revision of this API.