Skip to content

view_channel permission can't be called via member.guild_permissions #875

@BlckViper

Description

@BlckViper

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

No one assigned

    Labels

    unconfirmed bugA bug report that needs triaging

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions