Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: misc fixes/clarifications #1137

Merged
merged 7 commits into from
Feb 2, 2024
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion changelog/1045.bugfix.rst
Original file line number Diff line number Diff line change
@@ -1 +1 @@
|commands| Fix incorrect typings of :meth:`~disnake.ext.commands.InvokableApplicationCommand.add_check`, :meth:`~disnake.ext.commands.InvokableApplicationCommand.remove_check`, :meth:`~disnake.ext.commands.InteractionBotBase.add_app_command_check` and :meth:`~disnake.ext.commands.InteractionBotBase.remove_app_command_check`.
|commands| Fix incorrect typings of :meth:`InvokableApplicationCommand.add_check <.ext.commands.InvokableApplicationCommand.add_check>`, :meth:`InvokableApplicationCommand.remove_check <.ext.commands.InvokableApplicationCommand.remove_check>`, :meth:`Bot.add_app_command_check <.ext.commands.Bot.add_app_command_check>` and :meth:`Bot.remove_app_command_check <.ext.commands.Bot.remove_app_command_check>`.
2 changes: 1 addition & 1 deletion changelog/1111.bugfix.rst
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Allow ``cls`` argument in select menu decorators (e.g. :func`ui.string_select`) to be specified by keyword instead of being positional-only.
Allow ``cls`` argument in select menu decorators (e.g. :func:`ui.string_select`) to be specified by keyword instead of being positional-only.
6 changes: 0 additions & 6 deletions disnake/abc.py
Original file line number Diff line number Diff line change
Expand Up @@ -1297,12 +1297,6 @@ async def create_invite(
max_age: :class:`int`
How long the invite should last in seconds. If set to ``0``, then the invite
doesn't expire. Defaults to ``0``.

.. warning::

If the guild is not a Community guild (has ``COMMUNITY`` in :attr:`.Guild.features`),
this must be set to a number between ``1`` and ``2592000`` seconds.

max_uses: :class:`int`
How many uses the invite could be used for. If it's 0 then there
are unlimited uses. Defaults to ``0``.
Expand Down
2 changes: 1 addition & 1 deletion disnake/threads.py
Original file line number Diff line number Diff line change
Expand Up @@ -831,7 +831,7 @@ async def remove_user(self, user: Snowflake) -> None:
Parameters
----------
user: :class:`abc.Snowflake`
The user to add to the thread.
The user to remove from the thread.
Raises
------
Expand Down
2 changes: 1 addition & 1 deletion disnake/ui/select/role.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@


class RoleSelect(BaseSelect[RoleSelectMenu, "Role", V_co]):
"""Represents a UI user select menu.
"""Represents a UI role select menu.
This is usually represented as a drop down menu.
Expand Down
Loading