Skip to content

Commit ad53fd8

Browse files
committed
fix(DiscordExtremeList)!: update/remove functions
1 parent 1185ce8 commit ad53fd8

File tree

1 file changed

+4
-40
lines changed

1 file changed

+4
-40
lines changed

dbots/service.py

Lines changed: 4 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ class DiscordExtremeList(Service):
551551
552552
.. seealso::
553553
- `Discord Extreme List Website <https://discordextremelist.xyz/>`_
554-
- `Discord Extreme List API Documentation <https://docs.discordextremelist.xyz/>`_
554+
- `Discord Extreme List API Documentation <https://discordextremelist.xyz/docs>`_
555555
"""
556556

557557
BASE_URL = 'https://api.discordextremelist.xyz/v2'
@@ -583,9 +583,7 @@ def get_statistics(self) -> HTTPResponse:
583583
"""
584584
return self._request(
585585
method='GET',
586-
path='/stats',
587-
headers={'Authorization': self.token},
588-
requires_token=True
586+
path='/stats'
589587
)
590588

591589
def get_bot(self, bot_id: str) -> HTTPResponse:
@@ -599,39 +597,7 @@ def get_bot(self, bot_id: str) -> HTTPResponse:
599597
"""
600598
return self._request(
601599
method='GET',
602-
path=f'/bot/{bot_id}',
603-
headers={'Authorization': self.token},
604-
requires_token=True
605-
)
606-
607-
def get_bot_stats(self, bot_id: str) -> HTTPResponse:
608-
"""|httpres|\n
609-
Gets the bot's stats on this service.
610-
611-
Parameters
612-
-----------
613-
bot_id: :class:`str`
614-
The bot's ID.
615-
"""
616-
return self._request(
617-
method='GET',
618-
path=f'/bots/{bot_id}/stats'
619-
)
620-
621-
def get_bot_likes(self, bot_id: str) -> HTTPResponse:
622-
"""|httpres|\n
623-
Gets the list of people who liked this bot on this service.
624-
625-
Parameters
626-
-----------
627-
bot_id: :class:`str`
628-
The bot's ID.
629-
"""
630-
return self._request(
631-
method='GET',
632-
path=f'/bots/{bot_id}/likes',
633-
headers={'Authorization': self.token},
634-
requires_token=True
600+
path=f'/bot/{bot_id}'
635601
)
636602

637603
def get_user(self, user_id: str) -> HTTPResponse:
@@ -645,9 +611,7 @@ def get_user(self, user_id: str) -> HTTPResponse:
645611
"""
646612
return self._request(
647613
method='GET',
648-
path=f'/user/{user_id}',
649-
headers={'Authorization': self.token},
650-
requires_token=True
614+
path=f'/user/{user_id}'
651615
)
652616

653617

0 commit comments

Comments
 (0)