Class UserSystemMessage

User System Message

Hierarchy

Constructors

Properties

Accessors

Methods

Constructors

  • Construct System Message

    Parameters

    • client: Client

      Client

    • systemMessage: ({
          content: string;
          type: "text";
      } | {
          by: string;
          id: string;
          type: "user_added";
      } | {
          by: string;
          id: string;
          type: "user_remove";
      } | {
          id: string;
          type: "user_joined";
      } | {
          id: string;
          type: "user_left";
      } | {
          id: string;
          type: "user_kicked";
      } | {
          id: string;
          type: "user_banned";
      } | {
          by: string;
          name: string;
          type: "channel_renamed";
      } | {
          by: string;
          type: "channel_description_changed";
      } | {
          by: string;
          type: "channel_icon_changed";
      } | {
          from: string;
          to: string;
          type: "channel_ownership_changed";
      } | {
          by: string;
          id: string;
          type: "message_pinned";
      } | {
          by: string;
          id: string;
          type: "message_unpinned";
      }) & {
          type: "user_added" | "user_remove" | "user_joined" | "user_left" | "user_kicked" | "user_banned";
      }

      System Message

    Returns UserSystemMessage

Properties

client?: Client
type: "text" | "user_added" | "user_remove" | "user_joined" | "user_left" | "user_kicked" | "user_banned" | "channel_renamed" | "channel_description_changed" | "channel_icon_changed" | "channel_ownership_changed" | "message_pinned" | "message_unpinned"
userId: string

Accessors

Methods

  • Create an System Message from an API System Message

    Parameters

    • client: Client

      Client

    • message: {
          content: string;
          type: "text";
      } | {
          by: string;
          id: string;
          type: "user_added";
      } | {
          by: string;
          id: string;
          type: "user_remove";
      } | {
          id: string;
          type: "user_joined";
      } | {
          id: string;
          type: "user_left";
      } | {
          id: string;
          type: "user_kicked";
      } | {
          id: string;
          type: "user_banned";
      } | {
          by: string;
          name: string;
          type: "channel_renamed";
      } | {
          by: string;
          type: "channel_description_changed";
      } | {
          by: string;
          type: "channel_icon_changed";
      } | {
          from: string;
          to: string;
          type: "channel_ownership_changed";
      } | {
          by: string;
          id: string;
          type: "message_pinned";
      } | {
          by: string;
          id: string;
          type: "message_unpinned";
      }

    Returns SystemMessage

    System Message

Generated using TypeDoc