Hey - I've got a bot that locks/unlocks a channel via denying Send Message
Here's a code sample for what I've been doing
import disnake
r = ctx.guild.get_role(role id here)
x = ctx.channel.overwrites
x_r = x.get(r)
x_r.update(send_messages=True)
x.update({r: x_r})
await ctx.channel.edit(reason="unlock channel", overwrites=x)
Expected: Send Messages is set to True, and people can send messages
Actual: (attached)