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

feat(guildemojimanager): add delete and edit methods #7286

Merged
merged 12 commits into from
Jan 18, 2022

Conversation

ceilingfans
Copy link
Contributor

Please describe the changes this PR makes and why it should be merged:
This PR adds the delete and edit methods to the GuildEmojiManager as to use these methods, you would have to fetch the emoji from the manager before calling the methods on the GuildEmoji itself.

Status and versioning classification:

  • Code changes have been tested against the Discord API, or there are no code changes
  • I know how to update typings and have done so, or typings don't need updating
  • This PR changes the library's interface (methods or parameters added)

@ceilingfans ceilingfans changed the title Guildemojimanager delete edit feat(guildemojimanager): add delete and edit methods Jan 17, 2022
Copy link
Member

@kyranet kyranet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please make GuildEmoji#edit and GuildEmoji#delete use the manager methods to reduce code duplication.

packages/discord.js/src/managers/GuildEmojiManager.js Outdated Show resolved Hide resolved
Copy link
Contributor

@ImRodry ImRodry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Funny how I was just about to make a PR that included this lol

packages/discord.js/src/errors/Messages.js Outdated Show resolved Hide resolved
ceilingfans and others added 2 commits January 17, 2022 19:44
Co-authored-by: Rodry <38259440+ImRodry@users.noreply.github.com>
packages/discord.js/src/managers/GuildEmojiManager.js Outdated Show resolved Hide resolved
…nto guildemojimanager-delete-edit

# Conflicts:
#	packages/discord.js/src/managers/GuildEmojiManager.js
@iCrawl iCrawl dismissed stale reviews from vladfrangu and kyranet January 17, 2022 12:59

Stale

@iCrawl iCrawl requested a review from kyranet January 17, 2022 13:00
Copy link
Member

@kyranet kyranet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one thing, and some testing would be nice.

packages/discord.js/src/managers/GuildEmojiManager.js Outdated Show resolved Hide resolved
Co-authored-by: Antonio Román <kyradiscord@gmail.com>
@iCrawl iCrawl merged commit 9181a31 into discordjs:main Jan 18, 2022
@ceilingfans ceilingfans deleted the guildemojimanager-delete-edit branch January 18, 2022 09:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

6 participants