Skip to content

[user-installed-commands] Interaction app_permissions Includes Initiating Member's Permissions #7251

Open
@SomewhatDamaged

Description

@SomewhatDamaged

Description

If neither channel nor guild allows users to use external emoji, but a user with permission to executes a user-installed command, app_permissions value indicates the application has permission to embed emoji—when it can't.

Steps to Reproduce

  1. Create a guild.
  2. Ensure "Use External Emoji" in everyone role is disabled.
  3. Ensure "Use External Emoji" in #general channel is set to deny.
  4. With a test user, join the server.
  5. Set test user's permission for "Use External Emoji" in #general to enabled.
  6. Have test user add an App installed as a user-installed-app.
  7. Run command in #general that would post an external emoji. Take note of app_permissions value.

Expected Behavior

I expect it to either actually use the initiating member's permissions and allow the external emoji to render properly, or set the app_permissions integer correctly so apps don't think they have permission when they don't.

Current Behavior

When my app is told it can use external emoji, but can't, they render like so:
image

Screenshots/Videos

image

Client and System Information

discord.py
Red Bot framework

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions