fix: wrong sequence in getting channel overwrites
@@ -363,11 +363,11 @@ class Channel(ClientSerializerMixin, IDMixin):
)
_nsfw = self.nsfw if nsfw is MISSING else nsfw
_permission_overwrites = (
- [overwrite._json for overwrite in self.permission_overwrites]
+ [overwrite._json for overwrite in permission_overwrites]
+ if permission_overwrites is not MISSING
+ else [overwrite._json for overwrite in self.permission_overwrites]
if self.permission_overwrites
else None
- if permission_overwrites is MISSING
- else [overwrite._json for overwrite in permission_overwrites]
)
_type = self.type
