Skip to main content
discord.getGuild retrieve one Discord server by ID.
automations/discord-get-guild.automation.ts

Inputs

Required guildId; optional withCounts defaults to false. Optional second argument { account } selects the Discord binding.

Output

Returns a DiscordGuild. When withCounts is true, it also includes approximateMemberCount and approximatePresenceCount.

Discord behavior

The bot must be installed in the server.