Interface GatewayEvent_ChatMessageUpdated

interface GatewayEvent_ChatMessageUpdated {
    message: {
        channelId: string;
        content?: string;
        createdAt: string;
        createdBy: string;
        createdByWebhookId?: string;
        embeds?: {
            author?: {
                icon_url?: string;
                name?: string;
                url?: string;
            };
            color?: number;
            description?: string;
            fields?: {
                inline: boolean;
                name: string;
                value: string;
            }[];
            footer?: {
                icon_url?: string;
                text: string;
            };
            image?: {
                url?: string;
            };
            thumbnail?: {
                url?: string;
            };
            timestamp?: string;
            title?: string;
            url?: string;
        }[];
        groupId?: string;
        hiddenLinkPreviewUrls?: string[];
        id: string;
        isPinned: boolean;
        isPrivate?: boolean;
        isSilent: boolean;
        mentions?: {
            channels?: {
                id: string;
            }[];
            everyone?: boolean;
            here?: boolean;
            roles?: {
                id: number;
            }[];
            users?: {
                id: string;
            }[];
        };
        replyMessageIds?: string[];
        serverId?: string;
        type: ChatMessageType;
        updatedAt?: string;
    };
    serverId: string;
}

Properties

Properties

message: {
    channelId: string;
    content?: string;
    createdAt: string;
    createdBy: string;
    createdByWebhookId?: string;
    embeds?: {
        author?: {
            icon_url?: string;
            name?: string;
            url?: string;
        };
        color?: number;
        description?: string;
        fields?: {
            inline: boolean;
            name: string;
            value: string;
        }[];
        footer?: {
            icon_url?: string;
            text: string;
        };
        image?: {
            url?: string;
        };
        thumbnail?: {
            url?: string;
        };
        timestamp?: string;
        title?: string;
        url?: string;
    }[];
    groupId?: string;
    hiddenLinkPreviewUrls?: string[];
    id: string;
    isPinned: boolean;
    isPrivate?: boolean;
    isSilent: boolean;
    mentions?: {
        channels?: {
            id: string;
        }[];
        everyone?: boolean;
        here?: boolean;
        roles?: {
            id: number;
        }[];
        users?: {
            id: string;
        }[];
    };
    replyMessageIds?: string[];
    serverId?: string;
    type: ChatMessageType;
    updatedAt?: string;
}

Type declaration

  • channelId: string

    Channel ID Format: uuid

    The ID of the channel

  • Optionalcontent?: string

    Content Format: chat markdown

    The content of the message

  • createdAt: string

    Created at Format: date-time

    The ISO 8601 timestamp that the message was created at

  • createdBy: string

    Created by

    The ID of the user who created this message (Note: If this event has createdByWebhookId present, this field will still be populated, but can be ignored. In this case, the value of this field will always be Ann6LewA)

  • OptionalcreatedByWebhookId?: string

    Created by Webhook ID

    The ID of the webhook who created this message, if it was created by a webhook

  • Optionalembeds?: {
        author?: {
            icon_url?: string;
            name?: string;
            url?: string;
        };
        color?: number;
        description?: string;
        fields?: {
            inline: boolean;
            name: string;
            value: string;
        }[];
        footer?: {
            icon_url?: string;
            text: string;
        };
        image?: {
            url?: string;
        };
        thumbnail?: {
            url?: string;
        };
        timestamp?: string;
        title?: string;
        url?: string;
    }[]
  • OptionalgroupId?: string

    Group ID

    The ID of the group

  • OptionalhiddenLinkPreviewUrls?: string[]

    Hidden content link preview URLs

    Links in content to prevent unfurling as a link preview when displaying in Guilded

  • id: string

    Message ID Format: uuid

    The ID of the message

  • isPinned: boolean

    Is pinned

    false
    
  • OptionalisPrivate?: boolean

    Is private

    If set, this message will only be seen by those mentioned or replied to

  • isSilent: boolean

    Is silent

    If set, this message did not notify mention or reply recipients

    false
    
  • Optionalmentions?: {
        channels?: {
            id: string;
        }[];
        everyone?: boolean;
        here?: boolean;
        roles?: {
            id: number;
        }[];
        users?: {
            id: string;
        }[];
    }
    • Optionalchannels?: {
          id: string;
      }[]

      Channels

      Info on mentioned channels

    • Optionaleveryone?: boolean

      Everyone

      If

      was mentioned

    • Optionalhere?: boolean

      Here

      If

      was mentioned

    • Optionalroles?: {
          id: number;
      }[]

      Roles

      Info on mentioned roles

    • Optionalusers?: {
          id: string;
      }[]

      Users

      Info on mentioned users

  • OptionalreplyMessageIds?: string[]

    Message IDs that were replied to

  • OptionalserverId?: string

    Server ID

    The ID of the server

  • type: ChatMessageType

    Type

    The type of chat message. "system" messages are generated by Guilded, while "default" messages are user or bot-generated.

  • OptionalupdatedAt?: string

    Updated at Format: date-time

    The ISO 8601 timestamp that the message was updated at, if relevant

serverId: string

The ID of the server