Skip to content
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

Open
wants to merge 4 commits into
base: next
Choose a base branch
from

Conversation

nwerosama
Copy link

As was discussed/brought up in Discord a month ago for missing support for roles field in create_emoji and edit_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.

@github-actions github-actions bot added model Related to the `model` module. builder Related to the `builder` module. labels Jan 19, 2025
src/builder/create_command.rs Outdated Show resolved Hide resolved
@@ -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.
Copy link
Member

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.

Copy link
Author

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.

src/model/guild/guild_id.rs Outdated Show resolved Hide resolved
src/model/guild/guild_id.rs Show resolved Hide resolved
@github-actions github-actions bot removed the builder Related to the `builder` module. label Jan 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
model Related to the `model` module.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants