Search results
Results From The WOW.Com Content Network
If you already have the user's ID, you can fetch the user object using the following code: const client = new Discord.Client(); let thanos = client.users.fetch('IDHERE'); thanos.then(function(result1) { //put your code that uses the result1 (the user object) here //for example, you could do var imgURL = result1.displayAvatarURL(); });
Its pretty simple, I give the website a Discord User ID and it outputs that specific users account information. I believe my issue is related directly to how discord authorizes their bots and after about an hour of google searching I figured it would be better to ask here. Any help much appreciated! Current Code:
I have a json file (localJSON.json) with Discord usernames (i.e. JohnDoe#1234) and need to get the User IDs from these usernames in order to have a role added. Every place I have looked online has
I'm using the Get Current User Guild Member method of Discord API. I successfully get back information about user such as their role in a specific guild roles: ['705175621399216228'] How can I go ...
I have a list of user ids and I need to be able to resolve them to Discord usernames. Running client.get_user(my_id) returns my Discord username with discriminator, except it doesn't work on anyone else and it doesn't work for my username 100% of the time.
This way, the copied ID contains two parts, something similar to this: 123456789123456789-123456789123456789. The first part of the ID is actually the channel's ID, in which the message has been sent, whereas the second part is the message's ID.
I want to do something with my discord bot where it can get members by their ids, so if I had an example id 1234, I would do something like: user = # where the way to get the user would be # then... userid = user.id # same atts and funcs like in message.author I am using client: import discord client = discord.Client()
I'm trying to create a web application to manage the users of my Discord server. In my database, I have stored only the users' ids. I tried to use the discord.js API, but from what I've understood it
As the offical Discord docs explain : Guilds in Discord represent an isolated collection of users and channels, and are often referred to as "servers" in the UI. So guilds are basically servers and guildId is a unique server identifier.
For this I'd need the ID of the user, but can't figure out how to get it. @bot.command() async def name(): author = discord.User.id await bot.say(str(author)) We tried it this way, since the documentation says, the ID of a user is in the class User. But the only thing we get is <member 'id' of 'User' objects>