The 53-bit integer value defines the permissions of the bot. But one sentence confused me and it brought me to this easier idea.
...you can pass in keyword arguments denoting Permissions attributes (quoted from here)
I want to set my VoiceChannel permissions with the set_permissions function, but using the 53-bit integer value (my idea is to set value in the Permission parameters), which would make everything much easier.
What I tried so far
- I tried setting the permission bit in the
overwriteparameter of set_permissions withdiscord.Permissions(value=..) - I tried not using
discord.Permissions - I tried setting in the
valueparameter of thepermissionsparameter for set_permissions as the integer (e.g.value=1024)
They all don't work. I didn't find anything about this so I guess it's either not possible or nobody thought about this.
The code I have so far
--- Just a example code cut out of my code ---
ow_n = 1024
await voice_channel.set_permissions(everyone, permissions=ow_n) # voice_channel & everyone defined corrrectly before
Error:
discord.errors.InvalidArgument: Invalid permissions given to keyword arguments
To reiterate my question, how do I set channel permission overrides using a permission bit integer?