diff options
| author | 2023-03-20 14:07:30 +0200 | |
|---|---|---|
| committer | 2023-03-20 14:14:46 +0200 | |
| commit | d4dda1cfcb3949e7303bef1457ca395da7cd89f6 (patch) | |
| tree | e07a90e7ffb4840ab3d9e5198ddfa05501591cbe /pydis_site/apps/api/viewsets | |
| parent | Migrate infraction type `mute` to `timeout` (diff) | |
| parent | Merge pull request #902 from python-discord/dependabot/pip/flake8-bugbear-23.... (diff) | |
Merge branch 'main' into mbaruh/timeout
Diffstat (limited to 'pydis_site/apps/api/viewsets')
| -rw-r--r-- | pydis_site/apps/api/viewsets/bot/infraction.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/pydis_site/apps/api/viewsets/bot/infraction.py b/pydis_site/apps/api/viewsets/bot/infraction.py index 93d29391..ec8b83a1 100644 --- a/pydis_site/apps/api/viewsets/bot/infraction.py +++ b/pydis_site/apps/api/viewsets/bot/infraction.py @@ -72,7 +72,8 @@ class InfractionViewSet( ... 'type': 'ban', ... 'reason': 'He terk my jerb!', ... 'hidden': True, - ... 'dm_sent': True + ... 'dm_sent': True, + ... 'jump_url': '<discord message link>' ... } ... ] @@ -103,7 +104,8 @@ class InfractionViewSet( ... 'type': 'ban', ... 'reason': 'He terk my jerb!', ... 'user': 172395097705414656, - ... 'dm_sent': False + ... 'dm_sent': False, + ... 'jump_url': '<discord message link>' ... } #### Response format @@ -138,7 +140,7 @@ class InfractionViewSet( #### Status codes - 204: returned on success - - 404: if a infraction with the given `id` does not exist + - 404: if an infraction with the given `id` does not exist ### Expanded routes All routes support expansion of `user` and `actor` in responses. To use an expanded route, |