@@ -77,12 +77,12 @@ class Paginator(discord.ui.View):
77
77
user: Optional[Union[:class:`~discord.User`, :class:`~discord.Member`]]
78
78
The user or member that invoked the Paginator.
79
79
message: Union[:class:`~discord.Message`, :class:`~discord.WebhookMessage`]
80
- The message sent from the Paginator.
80
+ The message the Paginator is attached to .
81
81
82
82
Parameters
83
83
----------
84
84
pages: Union[List[:class:`str`], List[:class:`discord.Embed`]]
85
- Your list of strings or embeds to paginate
85
+ Your list of strings and/ or embeds to paginate
86
86
show_disabled: :class:`bool`
87
87
Choose whether or not to show disabled buttons
88
88
show_indicator: :class:`bool`
@@ -114,7 +114,7 @@ def __init__(
114
114
self .show_indicator = show_indicator
115
115
self .disable_on_timeout = disable_on_timeout
116
116
self .custom_view = custom_view
117
- self .message : Union [discord .Message , discord .WebhookMessage ]
117
+ self .message : Union [discord .Message , discord .WebhookMessage , None ] = None
118
118
self .buttons = {
119
119
"first" : {
120
120
"object" : PaginatorButton (
@@ -221,6 +221,7 @@ def customize_button(
221
221
----------
222
222
button_name: :class:`str`
223
223
Name of the button to customize
224
+ Must be one of ``first``, ``prev``, ``next``, or ``last``.
224
225
button_label: :class:`str`
225
226
Label to display on the button
226
227
button_emoji:
@@ -248,7 +249,7 @@ def update_buttons(self) -> Dict:
248
249
Returns
249
250
-------
250
251
Dict[:class:`str`, Dict[:class:`str`, Union[:class:`~PaginatorButton`, :class:`bool`]]]
251
- The dictionary of buttons that was updated.
252
+ The dictionary of buttons that were updated.
252
253
"""
253
254
for key , button in self .buttons .items ():
254
255
if key == "first" :
0 commit comments