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

[Question] How does the "channelTopicUpdateInterval" field work? #224

Closed
2 tasks done
DBPT210 opened this issue Mar 18, 2024 · 7 comments
Closed
2 tasks done

[Question] How does the "channelTopicUpdateInterval" field work? #224

DBPT210 opened this issue Mar 18, 2024 · 7 comments
Labels
question Further information is requested

Comments

@DBPT210
Copy link

DBPT210 commented Mar 18, 2024

Checks

Description

Hi there. I've been using this mod and it's pretty good, however I got a little issue regarding the "channelTopicUpdateInterval" field.
I'm guessing it controls the time it takes to update the channel topic on the Discord.
I wanted to make it update every minute, but I don't know what value to insert in the field. Right now I set it to "channelTopicUpdateInterval": 60000, but the result are pretty funky. I don't know what to say so I hope these screenshots can speak for themselves.
image
image
image

I wanted to know what the number I put on the field is and what can I do to update everything correctly every minute.
Thank you for you time.

@DBPT210 DBPT210 added the question Further information is requested label Mar 18, 2024
@Xujiayao
Copy link
Owner

I wanted to make it update every minute

You cannot do that. Discord has a strict rate limit on channel topic updates, about 1-2 updates every 10 minutes. However, there are no such restrictions on activities. That's why intervals are used instead of instant updates.

In milliseconds, default's 600,000 milliseconds = 10 minutes

@DBPT210
Copy link
Author

DBPT210 commented Mar 18, 2024

Oh I see. Is that maybe the reason it is not updating anymore?

@Xujiayao
Copy link
Owner

Check the server log/console

@DBPT210
Copy link
Author

DBPT210 commented Mar 18, 2024

I just checked and saw a [JDA RateLimit-Elastic-Worker 3/WARN] appearing every 10 minutes.

[JDA RateLimit-Elastic-Worker 3/WARN]: Encountered 429 on route PATCH/channels/{channel_id} with bucket 6e836da6cef38ba2f3dfd8568a4e9631:channel_id=1218668131564654712 Retry-After: 600000 ms Scope: shared

@Xujiayao
Copy link
Owner

Yep. This is the rate limit message. So I suggest you set it back to 10 minutes, which is a safer threshold (allowing one server restart within the interval)

@DBPT210
Copy link
Author

DBPT210 commented Mar 18, 2024

Alrighty then. Thanks for the clarification. 👍

@DBPT210 DBPT210 closed this as completed Mar 18, 2024
@Xujiayao
Copy link
Owner

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants