Skip to content

Commit e321aa5

Browse files
committed
feat(DiscordLabs): add get_bot_votes
1 parent ad53fd8 commit e321aa5

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

dbots/service.py

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@ class DiscordLabs(Service):
621621
622622
.. seealso::
623623
- `Discord Labs Website <https://bots.discordlabs.org/>`_
624-
- `Discord Labs API Documentation <https://docs.discordlabs.org/docs/api/api>`_
624+
- `Discord Labs API Documentation <https://docs.discordlabs.org/#/api>`_
625625
"""
626626

627627
BASE_URL = 'https://bots.discordlabs.org/v2'
@@ -660,6 +660,20 @@ def get_bot(self, bot_id: str) -> HTTPResponse:
660660
path=f'/bot/{bot_id}',
661661
)
662662

663+
def get_bot_votes(self, bot_id: str) -> HTTPResponse:
664+
"""|httpres|\n
665+
Gets the votes for this bot.
666+
667+
Parameters
668+
-----------
669+
bot_id: :class:`str`
670+
The bot's ID.
671+
"""
672+
return self._request(
673+
method='GET',
674+
path=f'/bot/{bot_id}/votes',
675+
)
676+
663677

664678
class DiscordListSpace(Service):
665679
"""

0 commit comments

Comments
 (0)