API reference
Moderation
The audit log, ban appeals, warnings and locks.
Get Guild Audit Log
/guilds/{guild.id}/audit-logsPeople and botsWhat happened in the server: newest first, filtered by person or action.
Discord's shape and action codes, plus tether's own entries. Entries that hold message text (bulk deletes) are left out of what a bot reads, as everywhere a bot reads text.
Permissions needed
VIEW_AUDIT_LOGbit 128- See the audit log
Path parameters
guild.id- A snowflake id.
Query string
user_idstring- Only what this person did.
action_typeinteger- Only this action (Discord's numbers).
beforestring- Entries older than this id.
afterstring- Entries newer than this id.
limitinteger · 1 to 100 · default 50
Response
200 APIAuditLog
{
"audit_log_entries": [
{
"id": "107441200000001000",
"target_id": "107441200000000201",
"user_id": "107441200000000200",
"action_type": 22
}
],
"users": [
{
"id": "107441200000000200",
"username": "josh",
"discriminator": "0",
"global_name": "Josh",
"avatar": "3f2a9c1e5b7d4a608c1e2f3a4b5c6d7e",
"banner": null,
"accent_color": null,
"bot": false,
"public_flags": 0
}
],
"webhooks": [],
"integrations": [],
"threads": [],
"guild_scheduled_events": [],
"auto_moderation_rules": [],
"application_commands": []
}
Errors
UNKNOWN_GUILD10004 · HTTP 404- The server does not exist, or you are not in it.
MISSING_PERMISSIONS50013 · HTTP 403- You lack a permission the route needs.
Discord
Like Discord’s Get Guild Audit Log, with differences.
Lists tether has none of are present and empty.
Get Ban Appeals
/guilds/{guild.id}/appealsPeople and botstether onlyThe appeals banned people sent.
Permissions needed
BAN_MEMBERSbit 4- Ban members
Path parameters
guild.id- A snowflake id.
Response
200 a list of APIBanAppeal
[
{
"guild_id": "107441200000000001",
"user": {
"id": "107441200000000201",
"username": "spammer",
"discriminator": "0",
"global_name": null,
"avatar": null,
"banner": null,
"accent_color": null,
"bot": false,
"public_flags": 0
},
"content": "Sorry, I will not do it again.",
"status": "waiting",
"reply": null,
"created_at": "2026-10-22T11:00:00.000Z",
"answered_at": null,
"answered_by": null,
"ban": {
"banned_at": "2026-10-21T20:00:00.000Z",
"banned_by": {
"id": "107441200000000200",
"username": "josh",
"discriminator": "0",
"global_name": "Josh",
"avatar": "3f2a9c1e5b7d4a608c1e2f3a4b5c6d7e",
"banner": null,
"accent_color": null,
"bot": false,
"public_flags": 0
},
"reason": "Spam"
}
}
]
Errors
UNKNOWN_GUILD10004 · HTTP 404- The server does not exist, or you are not in it.
MISSING_PERMISSIONS50013 · HTTP 403- You lack a permission the route needs.
Discord
Only on tether: Discord has no such route.
Ban appeals are tether's.
Answer a Ban Appeal
/guilds/{guild.id}/appeals/{user.id}People and botstether onlyUnban the person or deny the appeal, with an optional reply.
Permissions needed
BAN_MEMBERSbit 4- Ban members
Path parameters
guild.id- A snowflake id.
user.id- The banned person's id.
Body
application/json
status"unbanned" | "denied"requiredreplystring | null · max 500 characters
Example request
{
"status": "unbanned",
"reply": "Welcome back."
}
Response
200 APIBanAppeal
{
"guild_id": "107441200000000001",
"user": {
"id": "107441200000000201",
"username": "spammer",
"discriminator": "0",
"global_name": null,
"avatar": null,
"banner": null,
"accent_color": null,
"bot": false,
"public_flags": 0
},
"content": "Sorry, I will not do it again.",
"status": "unbanned",
"reply": "Welcome back.",
"created_at": "2026-10-22T11:00:00.000Z",
"answered_at": "2026-10-22T11:30:00.000Z",
"answered_by": {
"id": "107441200000000200",
"username": "josh",
"discriminator": "0",
"global_name": "Josh",
"avatar": "3f2a9c1e5b7d4a608c1e2f3a4b5c6d7e",
"banner": null,
"accent_color": null,
"bot": false,
"public_flags": 0
},
"ban": {
"banned_at": "2026-10-21T20:00:00.000Z",
"banned_by": {
"id": "107441200000000200",
"username": "josh",
"discriminator": "0",
"global_name": "Josh",
"avatar": "3f2a9c1e5b7d4a608c1e2f3a4b5c6d7e",
"banner": null,
"accent_color": null,
"bot": false,
"public_flags": 0
},
"reason": "Spam"
}
}
Errors
UNKNOWN_GUILD10004 · HTTP 404- The server does not exist, or you are not in it.
MISSING_PERMISSIONS50013 · HTTP 403- You lack a permission the route needs.
UNKNOWN_APPEAL90092 · HTTP 404- That person has no appeal here.
APPEAL_ALREADY_ANSWERED90093 · HTTP 400- The appeal was answered already.
Gateway events it causes
Discord
Only on tether: Discord has no such route.
Get Member Record
/guilds/{guild.id}/members/{user.id}/recordPeople and botstether onlyA member's moderation record: warnings, timeouts, kicks, bans and notes.
Permissions needed
MODERATE_MEMBERSbit 1099511627776- Time out members
Path parameters
guild.id- A snowflake id.
user.id- The person's id.
Response
200 APIMemberRecord
{
"guild_id": "107441200000000001",
"user_id": "107441200000000201",
"summary": {
"warnings": 1,
"timeouts": 0,
"kicks_or_bans": 0,
"notes": 0
},
"next_warning": {
"count": 3,
"days": 30,
"action": "timeout",
"duration_seconds": 3600
},
"next_warning_in": 2,
"cases": [
{
"id": "107441200000001100",
"guild_id": "107441200000000001",
"number": 7,
"type": "warn",
"user_id": "107441200000000201",
"moderator_id": "107441200000000200",
"reason": "Spam",
"duration_seconds": null,
"created_at": "2026-10-22T11:00:00.000Z",
"removed": null
}
]
}
Errors
UNKNOWN_GUILD10004 · HTTP 404- The server does not exist, or you are not in it.
MISSING_PERMISSIONS50013 · HTTP 403- You lack a permission the route needs.
UNKNOWN_USER10013 · HTTP 404- No such person.
Discord
Only on tether: Discord has no such route.
Cases and warnings are tether's.
Warn a Member or Add a Note
/guilds/{guild.id}/members/{user.id}/casesPeople and botstether onlyGive a warning or write a note in someone's record.
A warning may trigger the server's warning steps (a timeout, kick or ban after enough warnings).
Permissions needed
MODERATE_MEMBERSbit 1099511627776- Time out members
Path parameters
guild.id- A snowflake id.
user.id- The person's id.
Body
application/json
type"warn" | "note"requiredreasonstring · 1 to 1000 charactersrequired
Example request
{
"type": "warn",
"reason": "Spam"
}
Response
200 APIModCase
{
"id": "107441200000001100",
"guild_id": "107441200000000001",
"number": 7,
"type": "warn",
"user_id": "107441200000000201",
"moderator_id": "107441200000000200",
"reason": "Spam",
"duration_seconds": null,
"created_at": "2026-10-22T11:00:00.000Z",
"removed": null
}
Errors
UNKNOWN_GUILD10004 · HTTP 404- The server does not exist, or you are not in it.
MISSING_PERMISSIONS50013 · HTTP 403- You lack a permission the route needs.
INVALID_FORM_BODY50035 · HTTP 400- A field is missing, the wrong type or outside its limits.
Gateway events it causes
Discord
Only on tether: Discord has no such route.
Remove a Warning
/guilds/{guild.id}/cases/{case.id}People and botstether onlyCross out a warning. It stays in the record, no longer counts, and keeps who removed it and why.
Permissions needed
MODERATE_MEMBERSbit 1099511627776- Time out members
Path parameters
guild.id- A snowflake id.
case.id- A snowflake id.
Body
application/json
reasonstring | null · max 512 characters
Example request
{
"reason": "Mistake"
}
Response
200 APIModCase
{
"id": "107441200000001100",
"guild_id": "107441200000000001",
"number": 7,
"type": "warn",
"user_id": "107441200000000201",
"moderator_id": "107441200000000200",
"reason": "Spam",
"duration_seconds": null,
"created_at": "2026-10-22T11:00:00.000Z",
"removed": {
"by": "107441200000000200",
"reason": "Mistake",
"at": "2026-10-22T12:00:00.000Z"
}
}
Errors
UNKNOWN_GUILD10004 · HTTP 404- The server does not exist, or you are not in it.
MISSING_PERMISSIONS50013 · HTTP 403- You lack a permission the route needs.
UNKNOWN_MOD_CASE90171 · HTTP 404- There is no such case.
Gateway events it causes
Discord
Only on tether: Discord has no such route.
Get Warning Settings
/guilds/{guild.id}/warningsPeople and botstether onlyWhat warnings lead to: "after 3 warnings in 30 days, time them out".
Permissions needed
MANAGE_GUILDbit 32- Manage server
Path parameters
guild.id- A snowflake id.
Response
{
"guild_id": "107441200000000001",
"steps": [
{
"count": 3,
"days": 30,
"action": "timeout",
"duration_seconds": 3600
}
],
"tell_by_dm": true,
"post_in_channel": false
}
Errors
UNKNOWN_GUILD10004 · HTTP 404- The server does not exist, or you are not in it.
MISSING_PERMISSIONS50013 · HTTP 403- You lack a permission the route needs.
Discord
Only on tether: Discord has no such route.
Modify Warning Settings
/guilds/{guild.id}/warningsPeople and botstether onlyChange the warning steps and how people are told.
Permissions needed
MANAGE_GUILDbit 32- Manage server
Path parameters
guild.id- A snowflake id.
Body
application/json
stepsarray of object · max 10 itemssteps[].countinteger · 1 to 100requiredsteps[].daysinteger · 1 to 365requiredsteps[].action"timeout" | "kick" | "ban"requiredsteps[].duration_secondsinteger | null · 60 to 31536000requiredtell_by_dmbooleanpost_in_channelboolean
Example request
{
"tell_by_dm": true
}
Response
{
"guild_id": "107441200000000001",
"steps": [
{
"count": 3,
"days": 30,
"action": "timeout",
"duration_seconds": 3600
}
],
"tell_by_dm": true,
"post_in_channel": false
}
Errors
UNKNOWN_GUILD10004 · HTTP 404- The server does not exist, or you are not in it.
MISSING_PERMISSIONS50013 · HTTP 403- You lack a permission the route needs.
INVALID_FORM_BODY50035 · HTTP 400- A field is missing, the wrong type or outside its limits.
Gateway events it causes
Discord
Only on tether: Discord has no such route.
Lock Channel
/channels/{channel.id}/lockPeople and botstether onlyLock a text or voice channel's chat: only people who manage the channel can post, until it unlocks.
Permissions needed
MANAGE_CHANNELSbit 16- Manage channels
Path parameters
channel.id- A snowflake id.
Body
application/json
duration_secondsinteger | null · 60 to 31536000- Unlock by itself after this long (60 seconds to a year); absent or
nullis until unlocked. reasonstring | null · max 512 characters- Shown in the audit log.
Example request
{
"duration_seconds": 3600,
"reason": "Raid"
}
Response
200 APIChannel
{
"id": "107441200000000010",
"type": 0,
"guild_id": "107441200000000001",
"name": "general",
"position": 0,
"parent_id": null,
"topic": "Anything goes.",
"nsfw": false,
"last_message_id": "107441200000000100",
"permission_overwrites": [],
"rate_limit_per_user": 0
}
Errors
UNKNOWN_CHANNEL10003 · HTTP 404- The channel does not exist, or you are not in its server.
MISSING_ACCESS50001 · HTTP 403- You are in the server but cannot see the channel (VIEW_CHANNEL).
MISSING_PERMISSIONS50013 · HTTP 403- You lack a permission the route needs.
CANNOT_EXECUTE_ON_CHANNEL_TYPE50024 · HTTP 400- Only text and voice channels can be locked.
Gateway events it causes
Discord
Only on tether: Discord has no such route.
Unlock Channel
/channels/{channel.id}/lockPeople and botstether onlyUnlock a channel. Nothing happens if it is not locked.
Permissions needed
MANAGE_CHANNELSbit 16- Manage channels
Path parameters
channel.id- A snowflake id.
Response
200 APIChannel
{
"id": "107441200000000010",
"type": 0,
"guild_id": "107441200000000001",
"name": "general",
"position": 0,
"parent_id": null,
"topic": "Anything goes.",
"nsfw": false,
"last_message_id": "107441200000000100",
"permission_overwrites": [],
"rate_limit_per_user": 0
}
Errors
UNKNOWN_CHANNEL10003 · HTTP 404- The channel does not exist, or you are not in its server.
MISSING_ACCESS50001 · HTTP 403- You are in the server but cannot see the channel (VIEW_CHANNEL).
MISSING_PERMISSIONS50013 · HTTP 403- You lack a permission the route needs.
Gateway events it causes
Discord
Only on tether: Discord has no such route.