Skip to content

This could use self._move to avoid code duplication #205

@github-actions

Description

@github-actions

Author: [email protected]
Line: 1157

if index is None:
raise InvalidArgument("Could not resolve appropriate move position")
# TODO: This could use self._move to avoid code duplication
channels.insert(max((index + offset), 0), self)
payload: list[ChannelPositionUpdatePayload] = []
lock_permissions = kwargs.get("sync_permissions", False)
reason = kwargs.get("reason")
for index, channel in enumerate(channels):
d: ChannelPositionUpdatePayload = {"id": channel.id, "position": index} # pyright: ignore[reportAssignmentType]
if parent_id is not MISSING and channel.id == self.id:

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions