This will first check the cache to see if the member is already there, and if they're not, it will use the API to force-fetch the member. Because it returns a promise, your final code will look like: const member = await client.guilds.cache.get (guildid).members.fetch (userid) The first part defines the guild, and the second part gets the member. Download the Discord app or open the Discord web interface. Click the "plus" icon in the sidebar or accept Discord's invitation to create a new server. Choose a category for your server or skip this step. Name your server and upload an image if you want. Click "Create" and your new Discord server is ready. Guild Member. $2. / month. This tier is for anyone who wants to help with this project. Pledging in it means you want the game to keep updating and growing. Your voice will be heard in feedback with higher priority. You gain: "Guild Member" Exclusive Discord Role. 4K HD collectible wallpaper, per month! You cannot add a member just by entering their Snowflake ID only. This can only be done with the OAuth2 authentication flow and requesting the guilds and guilds.join scopes. Get Guilds: 401 Unauthorized. I'm working on a web app that uses Discord to sign and I was hoping to be able to pull the user's guild information once signed. I've already gone through the Authorization code grant process and have successfully retrieved the user's Access Token (Bearer). The Access Token has the 'identity' and 'guild' scope. Sharding Your Bot. You could theoretically have 2.500 guilds/shard. However, you might want to put the count to 1.500 g/s or 1.000 g/s. To know how many shards to use: guildCount / desiredGps = shardCount. guildCount: number of guilds your bot is in desiredGps: your desired number of guilds/shard. If your bot is in 2500 guilds (servers), and I tried to get the guild user by using: async execute (interaction) { const guild = interaction.member.guild; // valid guild let user = interaction.options.getUser ('user'); // gets the user const guildMember = await guild.members.fetch (user.id); // members is not a property of guild } However, the members property of guild in this case is yes but i will that all guilds that my bot is in are displayed in this file but this method only make that when my bot joins a new guild the guild are listed in this file but when i restart the bot the file will be empty. – Funki Craft. Aug 13, 2021 at 21:02. 1. Use .invites.cache.first () As part of the API change regarding intents, Discord also changed how members are loaded in the beginning. Originally the library could request 75 guilds at once and only request members from guilds that have the Guild.large attribute set to True. With the new intent changes, Discord mandates that we can only send 1 guild per request. A lot of users get confused as to what the difference between Users and GuildMembers is. The simple answer is that a User represents a global Discord user and a GuildMember represents a Discord user on a specific server. That means only GuildMembers can have permissions, roles, and nicknames, for example, because all of these things are server dFTDPlW.