Skip to content

Commit a581d91

Browse files
style(pre-commit): auto fixes from pre-commit.com hooks
1 parent 4c5e710 commit a581d91

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

discord/guild.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,14 @@
6161
NotificationLevel,
6262
NSFWLevel,
6363
OnboardingMode,
64+
RoleType,
6465
ScheduledEventLocationType,
6566
ScheduledEventPrivacyLevel,
6667
SortOrder,
6768
VerificationLevel,
6869
VideoQualityMode,
6970
VoiceRegion,
7071
try_enum,
71-
RoleType
7272
)
7373
from .errors import ClientException, HTTPException, InvalidArgument, InvalidData
7474
from .file import File
@@ -130,7 +130,6 @@
130130
from .voice import VoiceClient
131131
from .webhook import Webhook
132132

133-
134133
VocalGuildChannel = Union[VoiceChannel, StageChannel]
135134
GuildChannel = Union[
136135
VoiceChannel, StageChannel, TextChannel, ForumChannel, CategoryChannel

discord/role.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,10 @@ def is_available_for_purchase(self) -> bool:
630630
631631
.. versionadded:: 2.7
632632
"""
633-
return self.tags is not None and self.tags.type == RoleType.PREMIUM_SUBSCRIPTION_TIER
633+
return (
634+
self.tags is not None
635+
and self.tags.type == RoleType.PREMIUM_SUBSCRIPTION_TIER
636+
)
634637

635638
@deprecated(
636639
"Role.is_guild_connections_role is deprecated since version 2.8, consider using Role.type instead."

0 commit comments

Comments
 (0)