Skip to content
Moderation setGuildPreferredLocale

$setGuildPreferredLocale — Sets the preferred locale of a guild, returns bool.

Sets the preferred locale of a guild, returns bool.

Syntax

$setGuildPreferredLocale[guildID;(locale);(reason)]

Parameters

  • guildID (id, required) — The guild to set preferred locale on
  • locale (text, optional) — The new preferred locale
  • reason (text, optional) — The reason for this action

Return Value

  • Boolean.

Usage

$setGuildPreferredLocale[guildID;(locale);(reason)] → result

Example

$sendMessage[$setGuildPreferredLocale[10;fr]]

Try it

Paste an example into the playground to preview its message (functions that act on Discord are not run), or build the same thing with blocks.