Skip to content

Forgot await #1746

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

Conversation

OptimizationFreak
Copy link

Pull Request Type

  • Feature addition
  • Bugfix
  • Documentation update
  • Code refactor
  • Tests improvement
  • CI/CD pipeline enhancement
  • Other: [Replace with a description]

Description

Simple typo where you missed an await when fetching the application emoji.

Changes

  • Added await to self._client.http.get_application_emoji(self.id, emoji_id)

Related Issues

Test Scenarios

Emoji = await ctx.bot.app.fetch_emoji(your_id) is the simplest way to test.

Python Compatibility

  • I've ensured my code works on Python 3.10.x
  • I've ensured my code works on Python 3.11.x

Checklist

  • I've run the pre-commit code linter over all edited files
  • I've tested my changes on supported Python versions
  • I've added tests for my code, if applicable
  • I've updated / added documentation, where applicable

@OptimizationFreak OptimizationFreak deleted the app-emoji branch December 31, 2024 04:31
AstreaTSS added a commit that referenced this pull request Jan 2, 2025
Original code from #1746, which was closed for some reason.
silasary added a commit that referenced this pull request Jan 3, 2025
* Feat:  Add support for Application Emoji

* Fix emoji tests

* fix: make sure to await response

Original code from #1746, which was closed for some reason.

* feat: adjust methods in CustomEmoji to respect app emojis

* fix: adjust app emoji code based off testing

---------

Co-authored-by: AstreaTSS <25420078+AstreaTSS@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant