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

Get server emojis #13

Open
TheTechRobo opened this issue Jun 18, 2022 · 1 comment
Open

Get server emojis #13

TheTechRobo opened this issue Jun 18, 2022 · 1 comment

Comments

@TheTechRobo
Copy link
Contributor

This is listed in the README, but I figured I'd report it as an issue here for discussion.

Maybe this would work: https://discord.com/developers/docs/resources/emoji#list-guild-emojis

But if you don't want to manually make requests to the Discord API, I think this system would work:

  • For every channel encountered, see if you can type in it.
  • If so, click the emoji button.
  • If not, check if you can add a reaction to the latest message. If so, click the button to add one.
  • This opens the emoji picker. Scroll until you've scrolled through all emojis for that server.
  • If you couldn't open the emoji picker, try again in the next channel. Chances are, you'll eventually find a channel that meets either criteria.
@TheTechRobo
Copy link
Contributor Author

TheTechRobo commented Jul 8, 2022

For what it's worth, Discord sends emoji data in websockets:

[...]
        {
          "emojis": [
            {
              "roles": [],
              "require_colons": true,
              "name": "BlobJobWHM",
              "managed": false,
              "id": "821173484633063476",
              "available": true,
              "animated": false
            },
            {
              "roles": [],
              "require_colons": true,
              "name": "BlobJobPLD",
              "managed": false,
              "id": "821173484834521120",
              "available": true,
              "animated": false
            },
            {
              "roles": [],
              "require_colons": true,
              "name": "BlobJobSAM",
              "managed": false,
              "id": "821173485011075143",
              "available": true,
              "animated": false
            },
            {
              "roles": [],
              "require_colons": true,
              "name": "BlobJobNIN",
              "managed": false,
              "id": "821173485018808391",
              "available": true,
              "animated": false
            },
            {
              "roles": [],
              "require_colons": true,
              "name": "BlobJobWAR",
              "managed": false,
              "id": "821173485324861480",
              "available": true,
              "animated": false
            },
[...]

As such, I'm going to add this feature to my URL extractor.

Do you think this is out of scope for discard2?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants