woohyunjng / discord.py-components

An unofficial third-party library of discord.py for discord components.
https://devkiki7000.gitbook.io/discord-components/
MIT License
128 stars 43 forks source link

Fixed a couple of bugs caused from wrong variable names #10

Closed Jorgen1040 closed 3 years ago

Jorgen1040 commented 3 years ago

PR TYPE

Why did you open this PR (If it is other, please write a more detailed description.)

  • [ ] New feature
  • [x] Fix bug
  • [ ] Typo
  • [ ] Other

It seems some variable names have changed, but not been updated properly in other parts of the code. Regardless, this PR has fixed all (known) problems that occured with previous code as mentioned in #8.

Specifically:

AttributeError: 'NoneType' object has no attribute 'from_json'

and

KeyError: 'raw_data'

Checks

(This PR fixes #8)