You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To use disnake.Object in await channel.edit(overwrites=...) we should know about snowflake type (it is a Role or a Member) otherwise it will be ignored.
By setting the disnake.Object type, we can create permission overrides for channels without getting the full role object from the cache.
Summary
Add a way to select Snowflake Object type
What is the feature request for?
The core library
The Problem
To use
disnake.Object
inawait channel.edit(overwrites=...)
we should know about snowflake type (it is aRole
or aMember
) otherwise it will be ignored.By setting the
disnake.Object
type, we can create permission overrides for channels without getting the full role object from the cache.The Ideal Solution
Add new kwarg for
disnake.Object
initializerThe Current Solution
We can get the role object from cache and use it.
Additional Context
No response
The text was updated successfully, but these errors were encountered: