GuildEditAction

Inherits: DiscordRESTAction < Reference < Object

Description

Action to edit a guild settings.

Methods

return type signature
Guild submit ( ) coroutine
GuildEditAction set_name ( String name )
GuildEditAction set_verification_level ( int level )
GuildEditAction set_notifications_level ( int level )
GuildEditAction set_nsfw_level ( int level )
GuildEditAction set_afk_channel ( int id )
GuildEditAction set_afk_timeout ( int seconds )
GuildEditAction set_icon ( Image image )
GuildEditAction set_owner ( int id )
GuildEditAction set_splash ( Image image )
GuildEditAction set_discovery_splash ( Image image )
GuildEditAction set_banner ( Image image )
GuildEditAction set_system_channel ( int id )
GuildEditAction set_system_channel_flags ( int flags )
GuildEditAction set_rules_channel ( int id )
GuildEditAction set_public_updates_channel ( int id )
GuildEditAction set_preferred_locale ( String local )
GuildEditAction set_features ( PoolStringArray features )
GuildEditAction set_description ( String description )
GuildEditAction enable_premium_progress_bar ( bool value )
GuildEditAction remove_afk_channel ( )
GuildEditAction remove_system_channel ( )
GuildEditAction remove_rules_channel ( )
GuildEditAction remove_public_updates_channel ( )
GuildEditAction reason ( String why )

Method Descriptions

  • GuildEditAction GuildEditAction ( DiscordRESTMediator rest, int guild_id )

    Constructs a new GuildEditAction instance.


  • Guild submit ( ) coroutine

    Edits the guild settings.


  • GuildEditAction set_name ( String name )

    Sets the guild name.


  • GuildEditAction set_verification_level ( int level )

    Sets the member verfication level. level takes a Guild.VerificationLevel value.


  • GuildEditAction set_notifications_level ( int level )

    Sets the default message notifications level. level takes a Guild.MessageNotificationLevel value.


  • GuildEditAction set_nsfw_level ( int level )

    Sets the NSFW level. level takes a Guild.ExplicitContentFilterLevel value.


  • GuildEditAction set_afk_channel ( int id )

    Sets the afk channel in the guild. id must point to a voice channel.


  • GuildEditAction set_afk_timeout ( int seconds )

    Sets the afk timeout in seconds, can be set to: 60, 300, 900, 1800 or 3600.


  • GuildEditAction set_icon ( Image image )

    Sets the guild icon, image size has to be equal to 1024x1024.


  • GuildEditAction set_owner ( int id )

    Transfers guild ownership to an other user. The user executing this must be the guild owner.


  • GuildEditAction set_splash ( Image image )

    Sets the guild splash screen. Requires the guild to have INVITE_SPLASH feature.


  • GuildEditAction set_discovery_splash ( Image image )

    Sets the guild discovery splash image. Requires the guild to have DISCOVERABLE feature.


  • GuildEditAction set_banner ( Image image )

    Sets the guild banner image. Requires the guild to have BANNER feature.


  • GuildEditAction set_system_channel ( int id )

    Sets the system channel in the guild. id must point to a text channel.


  • GuildEditAction set_system_channel_flags ( int flags )

    Sets the system channel flags in the guild.


  • GuildEditAction set_rules_channel ( int id )

    Sets the afk channel in the guild. id must point to a text channel.


  • GuildEditAction set_public_updates_channel ( int id )

    Sets the afk channel in the guild. id must point to a text channel.


  • GuildEditAction set_preferred_locale ( String local )

    Sets the preferred locale of a community guild. See Locales.


  • GuildEditAction set_features ( PoolStringArray features )

    Sets the enabled guild features.


  • GuildEditAction set_description ( String description )

    Sets the guild description.


  • GuildEditAction enable_premium_progress_bar ( bool value )

    Whether the guild's boost progress bar should be enabled.


  • GuildEditAction remove_afk_channel ( )

    Removes the afk channel.
    Note: does not delete the channel.


  • GuildEditAction remove_system_channel ( )

    Removes the system channel.
    Note: does not delete the channel.


  • GuildEditAction remove_rules_channel ( )

    Removes the rules channel.
    Note: does not delete the channel.


  • GuildEditAction remove_public_updates_channel ( )

    Removes the public updates channel.
    Note: does not delete the channel.


  • GuildEditAction reason ( String why )

    Sets the reason for editing the guild.