zaida04 / guilded.js

A library for creating bots with the guilded.gg bot API.
https://guilded.js.org
MIT License
67 stars 15 forks source link

Add function(s) for getting emojis and roles in a server #200

Closed chill31 closed 1 year ago

chill31 commented 1 year ago

I was creating a server info command, and everything was going well, until I wanted to show the amount of roles and emotes, it's not really necessary to add, but how else would a general member know about it? I would want my bot to show all valid information to be shown so the user can actually get to know something when they run the command.

maybe like the <members>.fetchMany(serverId) function, there should be the same for emotes and roles for example: await client.roles.fetchMany(serverId) await client.emotes.fetchMany(serverId)

There are literally no alternatives possible, there are no role/emote function matching my use, there are only functions to add roles to user or remove roles from user.

Like all the other fetchMany() functions, these both should return useful information like:

the animated boolean is a must.

zaida04 commented 1 year ago

This is a limitation of the Guilded API. Once the API supports it, we will too. Feel free to reopen when the time comes.

chill31 commented 1 year ago

ok I have written a form to the API for adding this feature, hope they check it out and add it