Alchemy.Client.edit_guild

You're seeing just the function edit_guild, go back to Alchemy.Client module for more information.
Link to this function

edit_guild(guild_id, options)

Specs

edit_guild(snowflake(),
  name: String.t(),
  region: snowflake(),
  verification_level: Integer,
  default_message_notifications: Integer,
  afk_channel_id: snowflake(),
  afk_timeout: snowflake(),
  icon: url(),
  splash: url()
) :: {:ok, Alchemy.Guild.t()} | {:error, term()}

Modifies a guild's settings.

Options

  • name The name of the guild.
  • region The id of the voice region.
  • verification_level The level of verification of the guild.
  • default_message_notifications The default message notification settings.
  • afk_channel_id The id of the afk channel.
  • afk_timeout The afk timeout in seconds.
  • icon A url to the new icon. Must be a 128x128 jpeg image.
  • splash A url to the new splash screen. This is only available for partnered guilds.

Examples

Client.edit_guild(guild_id, name: "new name")