Skip to content

add Context.app_permissions for type safety #1413

@onerandomusername

Description

@onerandomusername

ctx.channel.permissions_for(ctx.me) is not type safe because ctx.me can be a ClientUser, but in the context of a Guild, this should always be safe. There's not a good way to provide type safety for this, it would be easier to add type safety with ctx.app_permissions, just like interactions support.

Metadata

Metadata

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions