diff options
| author | 2021-11-25 19:49:53 +0000 | |
|---|---|---|
| committer | 2021-11-25 19:49:53 +0000 | |
| commit | e2cd5bde82041ef8866bb97f777bc4bf8c00e5ef (patch) | |
| tree | 2c0a70c670b11066720e902e4df3902ebacbb1df /pydis_site/apps/api/viewsets | |
| parent | Merge pull request #628 from python-discord/alter-query-to-leverage-index (diff) | |
| parent | Merge migrations with upstream (diff) | |
Merge pull request #621 from python-discord/add-dm_sent-field
Diffstat (limited to 'pydis_site/apps/api/viewsets')
| -rw-r--r-- | pydis_site/apps/api/viewsets/bot/infraction.py | 9 | 
1 files changed, 6 insertions, 3 deletions
| diff --git a/pydis_site/apps/api/viewsets/bot/infraction.py b/pydis_site/apps/api/viewsets/bot/infraction.py index f8b0cb9d..8a48ed1f 100644 --- a/pydis_site/apps/api/viewsets/bot/infraction.py +++ b/pydis_site/apps/api/viewsets/bot/infraction.py @@ -70,7 +70,8 @@ class InfractionViewSet(      ...         'actor': 125435062127820800,      ...         'type': 'ban',      ...         'reason': 'He terk my jerb!', -    ...         'hidden': True +    ...         'hidden': True, +    ...         'dm_sent': True      ...     }      ... ] @@ -100,7 +101,8 @@ class InfractionViewSet(      ...     'hidden': True,      ...     'type': 'ban',      ...     'reason': 'He terk my jerb!', -    ...     'user': 172395097705414656 +    ...     'user': 172395097705414656, +    ...     'dm_sent': False      ... }      #### Response format @@ -118,7 +120,8 @@ class InfractionViewSet(      >>> {      ...     'active': True,      ...     'expires_at': '4143-02-15T21:04:31+00:00', -    ...     'reason': 'durka derr' +    ...     'reason': 'durka derr', +    ...     'dm_sent': True      ... }      #### Response format | 
