Actions53
- Message Actions
- Channel Actions
- Thread Actions
- Reaction Actions
- Guild (Server) Actions
- Member Actions
- Role Actions
- Voice Actions
- DM Actions
- Webhook Actions
- Invite Actions
Guild (Server) → Get
AI-generatedOverview
This node interacts with the Discord API to perform various operations related to Discord guilds (servers). Specifically, the 'Get' operation for the 'Guild (Server)' resource fetches detailed information about a specified Discord guild, including its ID, name, description, member count, owner ID, and creation timestamp. This is useful for scenarios where you need to retrieve metadata about a Discord server, such as for monitoring, reporting, or automation workflows involving Discord communities.
Use Case Examples
- Retrieve information about a Discord server to display its details in a dashboard.
- Use the guild information to verify server ownership or membership counts before performing further actions.
- Fetch guild metadata as part of a larger workflow that manages Discord server settings or user roles.
Properties
| Name | Meaning |
|---|---|
| Guild ID | The unique identifier of the Discord server (guild) to retrieve information from. This is a required input to specify which guild's information to fetch. |
| Additional Fields | A collection of optional fields that can be used to specify extra parameters for certain operations. For the 'Get' operation on 'Guild', this is typically empty or unused. |
Output
JSON
id- The unique identifier of the guild.name- The name of the guild.description- The description of the guild, if available.memberCount- The total number of members in the guild.ownerId- The user ID of the guild owner.createdTimestamp- The timestamp when the guild was created.
Dependencies
- Discord API access via a bot token credential
Troubleshooting
- Ensure the provided Guild ID is correct and the bot has permission to access the guild information.
- Common errors include 'Guild not found' if the ID is invalid or the bot is not a member of the guild.
- Authentication errors may occur if the bot token credential is invalid or expired; verify the token and permissions.
Links
- Discord.js Guild Class - Official documentation for the Guild class used to interact with Discord guilds.
- Discord Developer Portal - Official Discord API documentation and developer resources.