Browse Source

black format

pull/10214/head
makerze 1 month ago
parent
commit
59a35a2970
  1. 42
      discord/guild.py
  2. 12
      discord/role.py

42
discord/guild.py

@ -1293,7 +1293,8 @@ class Guild(Hashable):
overwrites: Mapping[Union[Role, Member, Object], PermissionOverwrite] = ...,
category: Optional[Snowflake] = ...,
**options: Any,
) -> Coroutine[Any, Any, TextChannelPayload]: ...
) -> Coroutine[Any, Any, TextChannelPayload]:
...
@overload
def _create_channel(
@ -1303,7 +1304,8 @@ class Guild(Hashable):
overwrites: Mapping[Union[Role, Member, Object], PermissionOverwrite] = ...,
category: Optional[Snowflake] = ...,
**options: Any,
) -> Coroutine[Any, Any, VoiceChannelPayload]: ...
) -> Coroutine[Any, Any, VoiceChannelPayload]:
...
@overload
def _create_channel(
@ -1313,7 +1315,8 @@ class Guild(Hashable):
overwrites: Mapping[Union[Role, Member, Object], PermissionOverwrite] = ...,
category: Optional[Snowflake] = ...,
**options: Any,
) -> Coroutine[Any, Any, StageChannelPayload]: ...
) -> Coroutine[Any, Any, StageChannelPayload]:
...
@overload
def _create_channel(
@ -1323,7 +1326,8 @@ class Guild(Hashable):
overwrites: Mapping[Union[Role, Member, Object], PermissionOverwrite] = ...,
category: Optional[Snowflake] = ...,
**options: Any,
) -> Coroutine[Any, Any, CategoryChannelPayload]: ...
) -> Coroutine[Any, Any, CategoryChannelPayload]:
...
@overload
def _create_channel(
@ -1333,7 +1337,8 @@ class Guild(Hashable):
overwrites: Mapping[Union[Role, Member, Object], PermissionOverwrite] = ...,
category: Optional[Snowflake] = ...,
**options: Any,
) -> Coroutine[Any, Any, NewsChannelPayload]: ...
) -> Coroutine[Any, Any, NewsChannelPayload]:
...
@overload
def _create_channel(
@ -1343,7 +1348,8 @@ class Guild(Hashable):
overwrites: Mapping[Union[Role, Member, Object], PermissionOverwrite] = ...,
category: Optional[Snowflake] = ...,
**options: Any,
) -> Coroutine[Any, Any, Union[TextChannelPayload, NewsChannelPayload]]: ...
) -> Coroutine[Any, Any, Union[TextChannelPayload, NewsChannelPayload]]:
...
@overload
def _create_channel(
@ -1353,7 +1359,8 @@ class Guild(Hashable):
overwrites: Mapping[Union[Role, Member, Object], PermissionOverwrite] = ...,
category: Optional[Snowflake] = ...,
**options: Any,
) -> Coroutine[Any, Any, ForumChannelPayload]: ...
) -> Coroutine[Any, Any, ForumChannelPayload]:
...
@overload
def _create_channel(
@ -1363,7 +1370,8 @@ class Guild(Hashable):
overwrites: Mapping[Union[Role, Member, Object], PermissionOverwrite] = ...,
category: Optional[Snowflake] = ...,
**options: Any,
) -> Coroutine[Any, Any, GuildChannelPayload]: ...
) -> Coroutine[Any, Any, GuildChannelPayload]:
...
def _create_channel(
self,
@ -3194,7 +3202,8 @@ class Guild(Hashable):
description: str = ...,
image: bytes = ...,
reason: Optional[str] = ...,
) -> ScheduledEvent: ...
) -> ScheduledEvent:
...
@overload
async def create_scheduled_event(
@ -3209,7 +3218,8 @@ class Guild(Hashable):
description: str = ...,
image: bytes = ...,
reason: Optional[str] = ...,
) -> ScheduledEvent: ...
) -> ScheduledEvent:
...
@overload
async def create_scheduled_event(
@ -3223,7 +3233,8 @@ class Guild(Hashable):
description: str = ...,
image: bytes = ...,
reason: Optional[str] = ...,
) -> ScheduledEvent: ...
) -> ScheduledEvent:
...
@overload
async def create_scheduled_event(
@ -3237,7 +3248,8 @@ class Guild(Hashable):
description: str = ...,
image: bytes = ...,
reason: Optional[str] = ...,
) -> ScheduledEvent: ...
) -> ScheduledEvent:
...
async def create_scheduled_event(
self,
@ -3605,7 +3617,8 @@ class Guild(Hashable):
primary_color: Union[Colour, int, None] = ...,
secondary_color: Union[Colour, int, None] = ...,
tertiary_color: Union[Colour, int, None] = ...,
) -> Role: ...
) -> Role:
...
@overload
async def create_role(
@ -3621,7 +3634,8 @@ class Guild(Hashable):
primary_color: Union[Colour, int, None] = ...,
secondary_color: Union[Colour, int, None] = ...,
tertiary_color: Union[Colour, int, None] = ...,
) -> Role: ...
) -> Role:
...
async def create_role(
self,

12
discord/role.py

@ -588,16 +588,20 @@ class Role(Hashable):
return Role(guild=self.guild, data=data, state=self._state)
@overload
async def move(self, *, beginning: bool, offset: int = ..., reason: Optional[str] = ...): ...
async def move(self, *, beginning: bool, offset: int = ..., reason: Optional[str] = ...):
...
@overload
async def move(self, *, end: bool, offset: int = ..., reason: Optional[str] = ...): ...
async def move(self, *, end: bool, offset: int = ..., reason: Optional[str] = ...):
...
@overload
async def move(self, *, above: Role, offset: int = ..., reason: Optional[str] = ...): ...
async def move(self, *, above: Role, offset: int = ..., reason: Optional[str] = ...):
...
@overload
async def move(self, *, below: Role, offset: int = ..., reason: Optional[str] = ...): ...
async def move(self, *, below: Role, offset: int = ..., reason: Optional[str] = ...):
...
async def move(
self,

Loading…
Cancel
Save