116
116
117
117
PartialMessageableChannel = Union [TextChannel , VoiceChannel , StageChannel , Thread , DMChannel , PartialMessageable ]
118
118
MessageableChannel = Union [PartialMessageableChannel , GroupChannel ]
119
- SnowflakeTime = Union [" Snowflake" , datetime ]
119
+ SnowflakeTime = Union [' Snowflake' , datetime ]
120
120
121
121
class PinnedMessage (Message ):
122
122
pinned_at : datetime
@@ -140,7 +140,7 @@ def __init__(self, iterator: AsyncIterator[PinnedMessage]) -> None:
140
140
141
141
def __await__ (self ) -> Generator [Any , None , List [PinnedMessage ]]:
142
142
warnings .warn (
143
- " `await <channel>.pins()` is deprecated; use `async for message in <channel>.pins()` instead." ,
143
+ ' `await <channel>.pins()` is deprecated; use `async for message in <channel>.pins()` instead.' ,
144
144
DeprecationWarning ,
145
145
stacklevel = 2 ,
146
146
)
@@ -423,8 +423,7 @@ class GuildChannel:
423
423
424
424
if TYPE_CHECKING :
425
425
426
- def __init__ (self , * , state : ConnectionState , guild : Guild , data : GuildChannelPayload ):
427
- ...
426
+ def __init__ (self , * , state : ConnectionState , guild : Guild , data : GuildChannelPayload ): ...
428
427
429
428
def __str__ (self ) -> str :
430
429
return self .name
@@ -794,7 +793,6 @@ def permissions_for(self, obj: Union[Member, Role], /) -> Permissions:
794
793
795
794
default = self .guild .default_role
796
795
if default is None :
797
-
798
796
if self ._state .self_id == obj .id :
799
797
return Permissions ._user_installed_permissions (in_guild = True )
800
798
else :
@@ -907,8 +905,7 @@ async def set_permissions(
907
905
* ,
908
906
overwrite : Optional [Union [PermissionOverwrite , _Undefined ]] = ...,
909
907
reason : Optional [str ] = ...,
910
- ) -> None :
911
- ...
908
+ ) -> None : ...
912
909
913
910
@overload
914
911
async def set_permissions (
@@ -917,8 +914,7 @@ async def set_permissions(
917
914
* ,
918
915
reason : Optional [str ] = ...,
919
916
** permissions : Unpack [_PermissionOverwriteKwargs ],
920
- ) -> None :
921
- ...
917
+ ) -> None : ...
922
918
923
919
async def set_permissions (
924
920
self ,
@@ -1109,8 +1105,7 @@ async def move(
1109
1105
category : Optional [Snowflake ] = MISSING ,
1110
1106
sync_permissions : bool = MISSING ,
1111
1107
reason : Optional [str ] = MISSING ,
1112
- ) -> None :
1113
- ...
1108
+ ) -> None : ...
1114
1109
1115
1110
@overload
1116
1111
async def move (
@@ -1121,8 +1116,7 @@ async def move(
1121
1116
category : Optional [Snowflake ] = MISSING ,
1122
1117
sync_permissions : bool = MISSING ,
1123
1118
reason : str = MISSING ,
1124
- ) -> None :
1125
- ...
1119
+ ) -> None : ...
1126
1120
1127
1121
@overload
1128
1122
async def move (
@@ -1133,8 +1127,7 @@ async def move(
1133
1127
category : Optional [Snowflake ] = MISSING ,
1134
1128
sync_permissions : bool = MISSING ,
1135
1129
reason : str = MISSING ,
1136
- ) -> None :
1137
- ...
1130
+ ) -> None : ...
1138
1131
1139
1132
@overload
1140
1133
async def move (
@@ -1145,8 +1138,7 @@ async def move(
1145
1138
category : Optional [Snowflake ] = MISSING ,
1146
1139
sync_permissions : bool = MISSING ,
1147
1140
reason : str = MISSING ,
1148
- ) -> None :
1149
- ...
1141
+ ) -> None : ...
1150
1142
1151
1143
async def move (self , ** kwargs : Any ) -> None :
1152
1144
"""|coro|
@@ -1428,8 +1420,7 @@ async def send(
1428
1420
view : LayoutView ,
1429
1421
suppress_embeds : bool = ...,
1430
1422
silent : bool = ...,
1431
- ) -> Message :
1432
- ...
1423
+ ) -> Message : ...
1433
1424
1434
1425
@overload
1435
1426
async def send (
@@ -1444,8 +1435,7 @@ async def send(
1444
1435
view : LayoutView ,
1445
1436
suppress_embeds : bool = ...,
1446
1437
silent : bool = ...,
1447
- ) -> Message :
1448
- ...
1438
+ ) -> Message : ...
1449
1439
1450
1440
@overload
1451
1441
async def send (
@@ -1465,8 +1455,7 @@ async def send(
1465
1455
suppress_embeds : bool = ...,
1466
1456
silent : bool = ...,
1467
1457
poll : Poll = ...,
1468
- ) -> Message :
1469
- ...
1458
+ ) -> Message : ...
1470
1459
1471
1460
@overload
1472
1461
async def send (
@@ -1486,8 +1475,7 @@ async def send(
1486
1475
suppress_embeds : bool = ...,
1487
1476
silent : bool = ...,
1488
1477
poll : Poll = ...,
1489
- ) -> Message :
1490
- ...
1478
+ ) -> Message : ...
1491
1479
1492
1480
@overload
1493
1481
async def send (
@@ -1507,8 +1495,7 @@ async def send(
1507
1495
suppress_embeds : bool = ...,
1508
1496
silent : bool = ...,
1509
1497
poll : Poll = ...,
1510
- ) -> Message :
1511
- ...
1498
+ ) -> Message : ...
1512
1499
1513
1500
@overload
1514
1501
async def send (
@@ -1528,8 +1515,7 @@ async def send(
1528
1515
suppress_embeds : bool = ...,
1529
1516
silent : bool = ...,
1530
1517
poll : Poll = ...,
1531
- ) -> Message :
1532
- ...
1518
+ ) -> Message : ...
1533
1519
1534
1520
async def send (
1535
1521
self ,
@@ -2029,7 +2015,7 @@ async def _before_strategy(retrieve: int, before: Optional[Snowflake], limit: Op
2029
2015
if limit is None :
2030
2016
raise ValueError ('history does not support around with limit=None' )
2031
2017
if limit > 101 :
2032
- raise ValueError (" history max limit 101 when specifying around parameter" )
2018
+ raise ValueError (' history max limit 101 when specifying around parameter' )
2033
2019
2034
2020
# Strange Discord quirk
2035
2021
limit = 100 if limit == 101 else limit
0 commit comments