Skip to content

Commit

Permalink
Change channel type override for channel update
Browse files Browse the repository at this point in the history
  • Loading branch information
4Kaylum committed Feb 6, 2024
1 parent f1433cb commit 365ecbb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion novus/models/channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ def _update(self, data: payloads.Channel) -> Self:
self.overwrites = [
PermissionOverwrite(
id=int(d['id']),
type=PermissionOverwriteType(d['type']),
type=PermissionOverwriteType[d['type']],
allow=Permissions(int(d['allow'])),
deny=Permissions(int(d['deny'])),
)
Expand Down
2 changes: 1 addition & 1 deletion novus/payloads/channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

class ChannelOverwrite(TypedDict):
id: Snowflake
type: Literal[0, 1]
type: Literal["role", "channel"]
allow: str
deny: str

Expand Down

0 comments on commit 365ecbb

Please sign in to comment.