If you change a discord's channel name too many times it will become rate limited. I tried preventing this by using
client.on("rateLimit", info => console.log(info))
but it doesn't detect when I change my channel name. I change my channel name in another file so that might be the problem.