aboutsummaryrefslogtreecommitdiffstats
path: root/pydis_site/apps
diff options
context:
space:
mode:
authorGravatar Amrou Bellalouna <[email protected]>2022-09-18 19:11:36 +0100
committerGravatar Amrou Bellalouna <[email protected]>2022-09-18 19:11:36 +0100
commite6db60717efe799e0900ad6cf60f4962f1aef7a1 (patch)
tree77da3d695223dcddd3d02d99f172afe671b31fcd /pydis_site/apps
parentreplace sweet with "sweets" to refer more to candy (diff)
restrict the RulesView docstrings to just what it does
Diffstat (limited to 'pydis_site/apps')
-rw-r--r--pydis_site/apps/api/views.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/pydis_site/apps/api/views.py b/pydis_site/apps/api/views.py
index 2c5343de..9e5ad73c 100644
--- a/pydis_site/apps/api/views.py
+++ b/pydis_site/apps/api/views.py
@@ -38,9 +38,8 @@ class RulesView(APIView):
## Routes
### GET /rules
Returns a JSON array containing the server's rules
- coupled with a list of keywords that will be used
- when searching for particular rules upon using the
- bot's `!rule` command
+ and keywords relating to each rule.
+ Example response:
>>> [
... ("Eat candy.", ["candy", "sweets"]),