discord.updateGuild updates a server’s name and common moderation settings.
automations/discord-update-guild.automation.ts
Inputs
RequiredguildId. Optional name, verificationLevel, defaultMessageNotifications, explicitContentFilter, afkChannelId, afkTimeout, systemChannelId, and audit-log reason. Nullable channel IDs clear the setting. Optional second argument { account } selects the Discord binding.
Output
Returns the updatedDiscordGuild.
Discord behavior
RequiresMANAGE_GUILD. Discord may reject settings unavailable to the server’s current feature set.