remove Optional from parameter and doc string
This commit is contained in:
@@ -1106,7 +1106,7 @@ class Message(Hashable):
|
|||||||
if self.type is MessageType.guild_invite_reminder:
|
if self.type is MessageType.guild_invite_reminder:
|
||||||
return 'Wondering who to invite?\nStart by inviting anyone who can help you build the server!'
|
return 'Wondering who to invite?\nStart by inviting anyone who can help you build the server!'
|
||||||
|
|
||||||
async def delete(self, *, delay: Optional[float] = None, silent: Optional[bool] = False) -> None:
|
async def delete(self, *, delay: Optional[float] = None, silent: bool = False) -> None:
|
||||||
"""|coro|
|
"""|coro|
|
||||||
|
|
||||||
Deletes the message.
|
Deletes the message.
|
||||||
@@ -1125,7 +1125,7 @@ class Message(Hashable):
|
|||||||
delay: Optional[:class:`float`]
|
delay: Optional[:class:`float`]
|
||||||
If provided, the number of seconds to wait in the background
|
If provided, the number of seconds to wait in the background
|
||||||
before deleting the message. If the deletion fails then it is silently ignored.
|
before deleting the message. If the deletion fails then it is silently ignored.
|
||||||
silent: Optional[:class:`bool`]
|
silent: :class:`bool`
|
||||||
If silent is set to ``True``, the error will not be raised, it will be ignored.
|
If silent is set to ``True``, the error will not be raised, it will be ignored.
|
||||||
This defaults to ``False``
|
This defaults to ``False``
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user