edit

inline suspend fun GuildBehavior.edit(builder: GuildModifyBuilder.() -> Unit): Guild(source)

Requests to edit this guild.

Return

The edited Guild.

Throws

if something went wrong during the request.


inline suspend fun GuildEmojiBehavior.edit(builder: EmojiModifyBuilder.() -> Unit): GuildEmoji(source)

Requests to edit this emoji.

Return

The edited GuildEmoji.

Throws

if something went wrong during the request.


Requests to modify this event according to the specified builder.

Throws

if anything goes wrong during the request


inline suspend fun MemberBehavior.edit(builder: MemberModifyBuilder.() -> Unit): Member(source)

Requests to edit this member.

Throws

if something went wrong during the request.


inline suspend fun MessageBehavior.edit(builder: UserMessageModifyBuilder.() -> Unit): Message(source)

Requests to edit this message.

Return

The edited Message.

Throws

if something went wrong during the request.


inline suspend fun MessageBehavior.edit(webhookId: Snowflake, token: String, threadId: Snowflake? = null, builder: WebhookMessageModifyBuilder.() -> Unit): Message(source)

Requests to edit this message if it was previously sent from a Webhook with the given webhookId using the token for authentication.

If this message is in a thread, threadId must be specified.

Return

The edited Message.

Throws

if something went wrong during the request.


inline suspend fun RoleBehavior.edit(builder: RoleModifyBuilder.() -> Unit): Role(source)

Requests to edit this role.

Return

The edited Role.

Throws

if something went wrong during the request.


inline suspend fun StickerBehavior.edit(builder: StickerModifyBuilder.() -> Unit): Sticker(source)


inline suspend fun WebhookBehavior.edit(builder: WebhookModifyBuilder.() -> Unit): Webhook(source)

Requests to edit the webhook, this user must be the creator.

Return

The updated Webhook.

Throws

if something went wrong during the request.


inline suspend fun WebhookBehavior.edit(token: String, builder: WebhookModifyBuilder.() -> Unit): Webhook(source)

Requests to edit the webhook.

Return

The updated Webhook.

Throws

if something went wrong during the request.