D
D
Deso Crew2020-12-27 13:01:07
Node.js
Deso Crew, 2020-12-27 13:01:07

How to rename a category?

How to rename a category, having only ID from it?
Here is the ID: 740156461262569482

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander, 2020-12-27
@desocrew

message.guild.channels.cache.find(ch => ch.id === "740156461262569482" && ch.type === "category").setName("новое_название")

A
abberati, 2020-12-27
@abberati

Write a function renameCategoryById that will take an ID and a new name, and when called, rename the category. Then call the function like this:

renameCategoryById(740156461262569482, "новое имя")

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question