pycord version. To install py-cord, first run pip uninstall discord.py and then pip install py-cord . Then in your code, first import the library with. import discord from discord.ext import commands. create your bot with. bot = commands.Bot () and create your slash command with. # Add the guild ids in which the slash command will appear. I'm using Discord's API, and want to get ALL of a user's roles across all of the guilds they are in. The documentation indicates the way to get "guild member" objects that contain info ab function getGuildById (ID) { return client.guilds.cache.get ("1033299353445605396"); } The function returns undefined. Try fetching the guild: await client.guilds.fetch (ID). You will have to make the function asynchronous. You'll need to call this function once the client is ready, in an event handler. Guild Lookup. Fetch Discord Information. Get detailed information about Discord guilds with creation date, Invite/Vanity URL, features and emojis. You can do what @IPSDSILVA did to get a specific guild or you can define guild by doing ctx.guild.member_count to get the member count of the server that the command was run in. Make sure you have ctx as a parameter if you do this way. Get a Discord Channel ID. Step. Details. 1. Enable Discord Developer mode. To switch this mode on, click on the settings cog icon in the bottom-left corner, and this will open your User Settings. Then, click on the "Advanced" option, and then click the Discord Developer mode switch to enable this feature. 2. dxKmHMR. Discord will try and limit users from repeatedly doing things they normally only do every once in a while, such as changing a profile picture or verifying a phone number. Rate limiting is primarily meant to keep bots in check, since bots can do things much, much faster than human users. First, you will need to create an application on Discord. Open a text editor to copy some information down as you follow these steps: Click the purple New Application button on the top-right of the page to create a new application: 3. Provide a memorable name for your bot when prompted, then click the purple Create button on the bottom-right: 4. Finding the guild of an "unknown adventurer" Using it when recruiting to get an idea of what guilds new members have been in. The command deployment script, to register your slash commands with Discord so they appear in the interface. These steps can be done in any order, but all are required before the commands are fully functional. This page details how to complete Step 3. Make sure to also complete the other pages linked above! Discord.py is handy to automate things and I am trying to create a scheduled discord event by command. But it seems that I cannot call the function create_scheduled_event of the Guild object while other functions work fine. For example, the function fetch_roles() works fine and returns the roles of my guild

discord what is a guild