seyfert
    Preparing search index...

    Class MessagesMethods

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    client: UsingClient
    id: string
    messages: {
        crosspost: (messageId: string, reason?: string) => Promise<Message>;
        delete: (messageId: string, reason?: string) => Promise<void>;
        edit: (
            messageId: string,
            body: Omit<
                RESTPatchAPIChannelMessageJSONBody,
                "components"
                | "content"
                | "embeds",
            > & ResolverProps,
        ) => Promise<Message>;
        fetch: (messageId: string, force?: boolean) => Promise<Message>;
        list: (fetchOptions: RESTGetAPIChannelMessagesQuery) => Promise<Message[]>;
        purge: (messages: string[], reason?: string) => Promise<undefined | void>;
        write: (
            body: Omit<
                RESTPostAPIChannelMessageJSONBody,
                "components"
                | "content"
                | "embeds"
                | "poll",
            > & SendResolverProps,
        ) => Promise<Message>;
    } = ...
    pins: {
        delete: (messageId: string, reason?: string) => Promise<undefined>;
        fetch: () => Promise<Message[]>;
        set: (messageId: string, reason?: string) => Promise<undefined>;
    } = ...
    reactions: {
        add: (messageId: string, emoji: EmojiResolvable) => Promise<void>;
        delete: (
            messageId: string,
            emoji: EmojiResolvable,
            userId?: string,
        ) => Promise<void>;
        fetch: (
            messageId: string,
            emoji: EmojiResolvable,
            query?: RESTGetAPIChannelMessageReactionUsersQuery,
        ) => Promise<User[]>;
        purge: (messageId: string, emoji?: EmojiResolvable) => Promise<void>;
    } = ...
    type: ChannelType

    Accessors

    • get createdAt(): Date

      createdAt gets the creation Date instace of the current object.

      Returns Date

    Methods

    • Type Parameters

      • T extends (keyof IChannelTypes)[]

      Parameters

      • channelTypes: T

      Returns this is IChannelTypes[T[number]]

    • Parameters

      Returns {
          crosspost: (messageId: string, reason?: string) => Promise<Message>;
          delete: (messageId: string, reason?: string) => Promise<void>;
          edit: (
              messageId: string,
              body: Omit<
                  RESTPatchAPIChannelMessageJSONBody,
                  "components"
                  | "content"
                  | "embeds",
              > & ResolverProps,
          ) => Promise<Message>;
          fetch: (messageId: string, force?: boolean) => Promise<Message>;
          list: (fetchOptions: RESTGetAPIChannelMessagesQuery) => Promise<Message[]>;
          purge: (messages: string[], reason?: string) => Promise<undefined | void>;
          write: (
              body: Omit<
                  RESTPostAPIChannelMessageJSONBody,
                  "components"
                  | "content"
                  | "embeds"
                  | "poll",
              > & SendResolverProps,
          ) => Promise<Message>;
      }

    • Parameters

      Returns {
          delete: (messageId: string, reason?: string) => Promise<undefined>;
          fetch: () => Promise<Message[]>;
          set: (messageId: string, reason?: string) => Promise<undefined>;
      }

    • Parameters

      Returns {
          add: (messageId: string, emoji: EmojiResolvable) => Promise<void>;
          delete: (
              messageId: string,
              emoji: EmojiResolvable,
              userId?: string,
          ) => Promise<void>;
          fetch: (
              messageId: string,
              emoji: EmojiResolvable,
              query?: RESTGetAPIChannelMessageReactionUsersQuery,
          ) => Promise<User[]>;
          purge: (messageId: string, emoji?: EmojiResolvable) => Promise<void>;
      }

    • Type Parameters

      • T

      Parameters

      • body:
            | Omit<
                RESTPostAPIChannelMessageJSONBody,
                "components"
                | "content"
                | "embeds"
                | "poll",
            > & SendResolverProps
            | Omit<
                RESTPatchAPIChannelMessageJSONBody,
                "components"
                | "content"
                | "embeds",
            > & ResolverProps
      • files: undefined | RawFile[]
      • self: UsingClient

      Returns T