-
-
Notifications
You must be signed in to change notification settings - Fork 482
Closed
Labels
unconfirmed bugA bug report that needs triagingA bug report that needs triaging
Description
Summary
view_channel permission can't be called via member.guild_permissions
Reproduction Steps
import discord
from discord.ext import commands
TOKEN = 'YOUR_DISCORD_BOT_TOKEN'
PREFIX = '!'
INTENTS = discord.Intents.all()
bot = commands.Bot(command_prefix=PREFIX, intents=INTENTS)
@bot.command()
async def test(ctx):
ctxa: discord.Member = ctx.author
[print(a) for a in ctxa.guild_permissions]
bot.run(TOKEN)
Minimal Reproducible Code
No response
Expected Results
>>> (view_channel, True)
Actual Results
Any other permissions would be shown, but not the view_channel
permission
Intents
discord.Intents.all()
System Information
- Python v3.10.0-final
- py-cord v2.0.0-alpha
- py-cord pkg_resources: v2.0.0a4841+gc3265c24
- aiohttp v3.7.4.post0
- system info: Windows 10 10.0.22000
Checklist
- I have searched the open issues for duplicates.
- I have shown the entire traceback, if possible.
- I have removed my token from display, if visible.
Additional Context
No response
Metadata
Metadata
Assignees
Labels
unconfirmed bugA bug report that needs triagingA bug report that needs triaging