#Check if a user has a specific permission in a specific channel
1 messages · Page 1 of 1 (latest)
It return's an int? It should be boolean
ctx.channel.has_permission(PERMISSION.Adminstrator) is False: works fine for me
no
sorry I meant ctx.author.channel_permissions() which takes a channel as argument
the previous method doesnt exist
for me
unless IDE is being dumb
ctx.author.channel_permissions() returns a permissions object, which is an int-like object
Channel Permission docs
https://interactions-py.github.io/interactions.py/API Reference/API Reference/models/Discord/user/#interactions.models.discord.user.Member.channel_permissions
Permissions object
https://interactions-py.github.io/interactions.py/API Reference/API Reference/models/Discord/enums/#interactions.models.discord.enums.Permissions