Table of Contents

Interface IMessageUpdateShardedGatewayHandler

Namespace
NetCord.Hosting.Gateway
Assembly
NetCord.Hosting.dll

Sent when a message is updated. The inner payload is a message object with set GuildId, and Author fields.

public interface IMessageUpdateShardedGatewayHandler : IShardedGatewayHandler

Remarks


Required Intents: GuildMessages, DirectMessages*
Optional Intents:

  • MessageContent For receiving Content, Embeds, Attachments and Embeds.
    This does not apply to:
    • Content in messages sent by the bot.
    • Content in DMs with the bot.
    • Content in which the bot is mentioned.
    • Content of messages a message context menu command is used on.


*Ephemeral messages do not use the guild channel. Because of this, they are tied to the DirectMessages intent, and the message object won't include a GuildId or Author.

Methods

HandleAsync(GatewayClient, Message)

Handles the gateway event.

ValueTask HandleAsync(GatewayClient client, Message arg)

Parameters

client GatewayClient

The gateway client that represents the shard that received the event.

arg Message

The event argument.

Returns

ValueTask