Skip to content

Conversation

@Speedcup
Copy link
Contributor

About

Fixes the following error whenever the bot leaves a guild:

File "interactions\client\smart_cache.py", line 642, in delete_guild
    if emoji._guild_id == guild_id:  # noqa
       ^^^^^^^^^^^^^^^
AttributeError: 'Snowflake' object has no attribute '_guild_id'

Checklist

  • The pre-commit code linter has been run over all edited files to ensure the code is linted.
  • I've ensured the change(s) work on 3.8.6 and higher.
  • I have added the versionadded, versionchanged and deprecated to any new or changed user-facing function I committed.

Pull-Request specification

I've made this pull request: (check all that apply)

  • For the documentation
  • To add a new feature
  • As a general enhancement
  • As a refactor of the library/the library's code
  • To fix an existing bug
  • To resolve #ISSUENUMBER


payload = {
"type": CallbackType.DEFERRED_CHANNEL_MESSAGE_WITH_SOURCE if not edit_origin else CallbackType.DEFERRED_UPDATE_MESSAGE
"type": CallbackType.DEFERRED_CHANNEL_MESSAGE_WITH_SOURCE
Copy link
Contributor

@LordOfPolls LordOfPolls Mar 11, 2023

Choose a reason for hiding this comment

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

This does not appear related to what you are trying to resolve - please rebase your pr before it can be merged

Copy link
Contributor Author

@Speedcup Speedcup Mar 12, 2023

Choose a reason for hiding this comment

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

This aint my change, this has been automatically formatted by pre-commit-ci[

Copy link
Contributor

Choose a reason for hiding this comment

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

Okeydoke, ill ignore it then

@LordOfPolls LordOfPolls merged commit 24de30d into interactions-py:5.x Mar 12, 2023
LordOfPolls pushed a commit that referenced this pull request Mar 13, 2023
* fix: emoji deletion error on guild leave

* ci: correct from checks.

---------

Co-authored-by: SPEEDCUP <mail@speedcup.dev>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
@Speedcup Speedcup deleted the emoji_fix branch October 6, 2024 11:48
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.

3 participants