DiscordSRV

DiscordSRV

86.8k Downloads

Allow Channelupdater to cycle between formats

BirbEXE opened this issue ยท 1 comments

commented

Why?

Personally, I want to display multiple statistics in my discord server, suchas playercount, uptime and TPS. however, I don't want loads of voice channels cluttering up my discord server.

to get around this, I suggest that an option to cycle between presets on the same voice channel is added.

What and How?

Plugin users should be able to define a list of formats for a given ChannelID rather than just one. This can be achieved by converting the Format variable into a list, rather than a string. The plugin should rotate over these list items, using timed intervals from a new variable, for example RotationInterval. This is better than the alternative of just rotating every updateinterval because it means you can have a good balance of up-to-date info, as well as not rotating too fast through the options.

This solution only requires modifying/adding two variables in config as shutdownformat and updateinterval can stay the same.

Are there alternatives?

I can't imagine this is much different from the system already in place, integration shouldn't be too difficult.

At worst, Format can be displayed as multiple variables but I have literally no idea why you would have to do that.

You could also use updateinterval to rotate between formats without adding another variable but this solution also leaves some to be desired.

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

Due to Discord rate limits, the minimum amount of time allowed between channel updates is 10 minutes. This means one cycle of a channel switching between three different names would take half an hour at minimum, and a user wanting one of these pieces of information could be left waiting a whole 20 minutes.

You should instead put all of this information in the synced chat channel (or console channel)'s topic.