我多久可以重命名不和谐频道的名称? [英] How often can I rename discord channel's name?

查看:45
本文介绍了我多久可以重命名不和谐频道的名称?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这不是有关如何更改频道名称的帖子(我知道).

This is not a post about HOW to change channel's name (I know it).

我有一个使用多个机器人的国际服务器.而且我们所有人都依赖UTC时间(在世界范围内进行协调).因此,诞生了制作时间机器人的解决方案,该解决方案将在没人能访问的专用频道中显示当前UTC时间.是的,精度是必须的,甚至是几秒钟.

I have an international server using several bots. And we all depend on UTC time (to coordinate through the world). So there was borned a solution to make a time-bot which will show current UTC-time in the dedicated channel nobody can visit. And yes, precision is necessary, even seconds.

我创建了一个语音频道,该频道的权限不允许所有人加入.一切正常,每1000毫秒更新一次.然后(经过几个月的良好工作)出现了问题,它开始更新错误.我已将更新间隔增加到5000毫秒,并且它开始可以正常工作...直到昨天.

I created a voice channel with permissions not to join for @everyone. Everything worked fine, it updated every 1000 ms. Then (after several months of good work) something was broke, it started updating incorrect. I've increased update interval up to 5000 ms and it have started to work fine... until yesterday.

现在它不再起作用了.即使我增加间隔更多.它有时有效,有时我真的不知道间隔是多少,它是巨大且不可预测的.时间机器人暂时中断了,在这种情况下不能再使用了.

Now it doesn't work anymore. Even if I increase interval much more. It works sometimes I don't really know what the interval is, it's huge and unpredictable.. the time-bot is broken for now and cannot be used anymore in that case.

更新频道名称是否有任何限制?在可用的文档中找不到关于此的任何信息.

Is there any restrictions for updating channel name? I can't find any information about this in available documentations.

Client.setInterval(() => {
  const { h, m, s } = getTime();
  channel.edit({ name: `${getClockEmoji({ h, m })} UTC: ${h}-${m}-${s}` }).catch((err) => console.log(err));
}, updateInterval);

提供的数据是正确的,因为我将其发送到控制台,并且它在设置的间隔内根据需要进行更新.但是频道名称不会经常更新.

Providing data is correct, 'cause I send it to console and it updates as good as I need in interval I set. But channel name not updates that often..

不和谐过滤器是否经常更新请求?

Does discord filter too often update requests?

discord.js版本为v.12.2.0

discord.js version is v.12.2.0

推荐答案

Discord已将喜欢频道重命名"的RateLimit设置为每10分钟 2个请求.每10分钟10,000表示正常";诸如 sendmessage

Discord had set the RateLimit for thinks Like channelrename to 2 requests per 10 Minutes. the 10,000 per 10 Minutes is for "normal" Requests like sendmessage

这篇关于我多久可以重命名不和谐频道的名称?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆