DiscordSRV

DiscordSRV

86.8k Downloads

Role colors and names from roleid with placeholders.

LilSadPanda opened this issue · 3 comments

commented

Why?

It would be an alternative to the following placeholder to directly use a role instead of top role etc.

%discordsrv_user_top_role_name%
%discordsrv_user_top_role_color_hex%
%discordsrv_user_top_role_color_code%

What and How?

Implement new placeholders that can return a color or name from given role ID for example

%discordsrv_roleid_name% = Cool Role Name
%discordsrv_roleid_color_hex% = #FFFFFF
%discordsrv_roleid_color_code% = &F&F&F&F&F&F

Are there alternatives?

Not that I know of :D.

Checks

  • I have used the search at least once to check if my idea has already been suggested and perhaps already implemented.

Anything else

No response

commented

I think thats a really cool idea, the only thing is would every time the placeholder field is updated be a request to the discord api. Which depending on server sizes and could hit the 50 request/s limit if all scoreboards are updated at the same time and there isn’t a cache

commented

I think thats a really cool idea, the only thing is would every time the placeholder field is updated be a request to the discord api. Which depending on server sizes and could hit the 50 request/s limit if all scoreboards are updated at the same time and there isn’t a cache

Roles in the guild are cached by the bot internally, there would be minimal performance overhead

commented

I think thats a really cool idea, the only thing is would every time the placeholder field is updated be a request to the discord api. Which depending on server sizes and could hit the 50 request/s limit if all scoreboards are updated at the same time and there isn’t a cache

Roles in the guild are cached by the bot internally, there would be minimal performance overhead

Alright I'll start working on this at some point using the relational placeholders (makes it so they start with rel_discordsrv)