-
Notifications
You must be signed in to change notification settings - Fork 596
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update two emoji functions with roles field #3095
base: next
Are you sure you want to change the base?
Conversation
@@ -317,7 +317,7 @@ impl GuildId { | |||
builder.execute(http, self).await | |||
} | |||
|
|||
/// Creates an emoji in the guild with a name and base64-encoded image. | |||
/// Creates an emoji in the guild with a name and base64-encoded image and set of roles. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this documentation be expanded a little to explain what the roles passed do? I had to check ddev docs to realize it restricts the emoji to only be usable by those roles.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should I add the section about it above the permission line comment? Something like "The emoji will only be visible to those that has the role to use it."? It's the furthest I can think of right now while understanding the Discord docs.
As was discussed/brought up in Discord a month ago for missing support for roles field in
create_emoji
andedit_emoji
.I feel like I am missing something prior to creating this PR but feel free to correct me on it though.
Yes, it is also tested on the bot before forking and creating the PR.