i couldnt find any good documentation on position changing, so im probably doing something wrong. heres my code
StaffRole = ctx.guild.get_role(int(os.environ.get("STAFF_ROLE")))
category = ctx.channel.category
channel = await category.create_channel(
channel_type=ChannelType.GUILD_TEXT,
name=f"{responses['shortdesc']} Exploiter Report",
topic=f'Exploiter report for "{responses["shortdesc"]}".',
position=ctx.channel.position,
permission_overwrites=[
PermissionOverwrite(
ctx.guild.default_role.id,
type=OverwriteType.ROLE,
deny=Permissions.VIEW_CHANNEL,
),
PermissionOverwrite(
ctx.author.id,
type=OverwriteType.MEMBER,
allow=Permissions.VIEW_CHANNEL,
),
PermissionOverwrite(
StaffRole.id,
type=OverwriteType.MEMBER,
allow=Permissions.VIEW_CHANNEL,
),
],
)