T
T
TheBeJIIHiu2021-09-21 12:50:27
Node.js
TheBeJIIHiu, 2021-09-21 12:50:27

How to get a discord server ID?

Hello, I'm making a discord chat manager bot on [email protected], I need to get the server id and save it in json, I don't know how to do it, help, newbie :)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
Fedor Maslennikov, 2021-09-21
@TheBeJIIHiu

If you need a specific server, then you can get the ID manually. To do this, you need to:
1) Go to the Discord application settings
2) Select the "Advanced" section
3) Enable "Developer Mode"
Next, go to the server and right-click on its name. A "Copy ID" button should appear at the very bottom. In addition, now you can copy the ID of any chats and users.
If you are a server administrator, you can do the same with roles.
PS Software, so software, okay...
var server = message.guild.id;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question