File tree Expand file tree Collapse file tree 4 files changed +20
-1
lines changed
Expand file tree Collapse file tree 4 files changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,9 @@ Client reference
44.. autoclass :: topgg.client.Client
55 :members:
66
7+ .. automodule :: topgg.widget
8+ :members:
9+
710.. autoclass :: topgg.models.SortBy()
811 :members:
912
Original file line number Diff line number Diff line change 2828from .webhooks import Vote , Webhooks
2929from .version import VERSION
3030from .client import Client
31+ from . import widget
3132
3233
3334__title__ = 'topggpy'
4950 'Vote' ,
5051 'Voter' ,
5152 'Webhooks' ,
53+ 'widget' ,
5254)
Original file line number Diff line number Diff line change 4040from .version import VERSION
4141
4242
43- BASE_URL = 'https://top.gg/api'
43+ BASE_URL = 'https://top.gg/api/v1 '
4444MAXIMUM_DELAY_THRESHOLD = 5.0
4545
4646
Original file line number Diff line number Diff line change 1+ from .client import BASE_URL
2+
3+ def servers (id : int ) -> str :
4+ """
5+ Generates a large widget URL.
6+
7+ :param id: The requested ID.
8+ :type id: :py:class:`int`
9+
10+ :returns: The widget URL.
11+ :rtype: :py:class:`str`
12+ """
13+
14+ return f'{ BASE_URL } /widgets/large/{ id } '
You can’t perform that action at this time.
0 commit comments