@@ -115,7 +115,7 @@ async def _single_delete_strategy(
115
115
116
116
117
117
async def _purge_messages_helper (
118
- channel : TextChannel | Thread | VoiceChannel ,
118
+ channel : TextChannel | StageChannel | Thread | VoiceChannel ,
119
119
* ,
120
120
limit : int | None = 100 ,
121
121
check : Callable [[Message ], bool ] = MISSING ,
@@ -1345,7 +1345,7 @@ async def send(
1345
1345
file : File = ...,
1346
1346
stickers : Sequence [GuildSticker | StickerItem ] = ...,
1347
1347
delete_after : float = ...,
1348
- nonce : str | int = ...,
1348
+ nonce : int | str = ...,
1349
1349
enforce_nonce : bool = ...,
1350
1350
allowed_mentions : AllowedMentions = ...,
1351
1351
reference : Message | MessageReference | PartialMessage = ...,
@@ -1365,7 +1365,7 @@ async def send(
1365
1365
files : list [File ] = ...,
1366
1366
stickers : Sequence [GuildSticker | StickerItem ] = ...,
1367
1367
delete_after : float = ...,
1368
- nonce : str | int = ...,
1368
+ nonce : int | str = ...,
1369
1369
enforce_nonce : bool = ...,
1370
1370
allowed_mentions : AllowedMentions = ...,
1371
1371
reference : Message | MessageReference | PartialMessage = ...,
@@ -1385,7 +1385,7 @@ async def send(
1385
1385
file : File = ...,
1386
1386
stickers : Sequence [GuildSticker | StickerItem ] = ...,
1387
1387
delete_after : float = ...,
1388
- nonce : str | int = ...,
1388
+ nonce : int | str = ...,
1389
1389
enforce_nonce : bool = ...,
1390
1390
allowed_mentions : AllowedMentions = ...,
1391
1391
reference : Message | MessageReference | PartialMessage = ...,
@@ -1405,7 +1405,7 @@ async def send(
1405
1405
files : list [File ] = ...,
1406
1406
stickers : Sequence [GuildSticker | StickerItem ] = ...,
1407
1407
delete_after : float = ...,
1408
- nonce : str | int = ...,
1408
+ nonce : int | str = ...,
1409
1409
enforce_nonce : bool = ...,
1410
1410
allowed_mentions : AllowedMentions = ...,
1411
1411
reference : Message | MessageReference | PartialMessage = ...,
@@ -1465,7 +1465,7 @@ async def send(
1465
1465
The file to upload.
1466
1466
files: List[:class:`~discord.File`]
1467
1467
A list of files to upload. Must be a maximum of 10.
1468
- nonce: :class:`int`
1468
+ nonce: Union[ :class:`str`, :class:` int`]
1469
1469
The nonce to use for sending this message. If the message was successfully sent,
1470
1470
then the message will have a nonce with this value.
1471
1471
enforce_nonce: Optional[:class:`bool`]
0 commit comments