

The result of fetchUser would be a discord.js User object. You can then use the Get User endpoint ( /users/ = require('discord.js')Ĭonst fetchUser = async id => (id) If you do, you should regenerate it to prevent abuse. To get your Server ID right click on the server icon on the left hand sidebar then click on Copy ID then paste it into your Discord or on a text editor. It is important to never share your token. There, you'll see a section called 'Token' under the bot username. Once you've done that, click 'Bot' on the sidebar and create a bot for that application. Tap anyone's profile icon, select the horizontal dots, and press "Copy ID".ĭid this guide help you figure out how to get the Discord ID for users, messages, and servers? If so, take a look at our related articles for more great tips.First, create a Discord application here. Tap your avatar and choose "Appearance" or "Behavior", depending on whether you're on iOS or Android, respectively. On mobile, open Discord and bring out the menu. After that, just right-click anyone's avatar and select "Copy ID". To get your Discord ID on a computer, tap the gear icon to enter user settings, tap "Advanced" from the "App Settings" section on the left, and enable Developer Mode. They can't do anything nefarious with your ID. There are rare instances where Discord Support might need your ID to help your resolve an issue. These IDs can be used to give a bot permission to interact with a specific user, or when using a server's ID, only a specific Discord server.

However, developers can make use of these IDs frequently, especially when developing bots. However, the app uses these unique IDs to identify messages, servers, and users. Most regular users don't have a need for this long numerical string that Discord provides. Turn on the toggle beside "Developer Mode" to enable it.From the left sidebar, under the "App Settings" section, select "Advanced".Click on the gear icon in the bottom-left corner to access user settings.The first thing you'll need to do is enable Developer Mode: The method to find your Discord ID are pretty much the same whether you're using the desktop app or the regular Discord website. Regardless, I'll guide you through all these steps, whether you're using your phone or a computer. While it is possible to do this on both mobile and PC, there are some steps to follow to get to the point where you can copy the ID. If you need your Discord ID for any reason, you might have no idea how to find it. Is Discord User ID Different from Discord Tag?.
