File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -1201,7 +1201,7 @@ class TopCord(Service):
1201
1201
- `TopCord API Documentation <https://docs.topcord.xyz/#/API>`_
1202
1202
"""
1203
1203
1204
- BASE_URL = 'https://topcord.xyz/api '
1204
+ BASE_URL = 'https://api. topcord.xyz'
1205
1205
1206
1206
@staticmethod
1207
1207
def aliases () -> list :
@@ -1219,7 +1219,7 @@ def _post(
1219
1219
payload ['shards' ] = shard_count
1220
1220
return http_client .request (
1221
1221
method = 'POST' ,
1222
- path = f'{ TopCord .BASE_URL } /bot/stats/ { bot_id } ' ,
1222
+ path = f'{ TopCord .BASE_URL } /bot/{ bot_id } /stats ' ,
1223
1223
headers = {'Authorization' : token },
1224
1224
json = payload
1225
1225
)
@@ -1238,6 +1238,13 @@ def get_bot(self, bot_id: str) -> HTTPResponse:
1238
1238
path = f'/bot/{ bot_id } ' ,
1239
1239
)
1240
1240
1241
+ def get_bots (self ) -> HTTPResponse :
1242
+ """|httpres|\n \n Lists every bot on this service."""
1243
+ return self ._request (
1244
+ method = 'GET' ,
1245
+ path = '/bots' ,
1246
+ )
1247
+
1241
1248
1242
1249
class TopGG (Service ):
1243
1250
"""
You can’t perform that action at this time.
0 commit comments