Function dialogs

  • Dialogs

    Parameters

    • methods: RequestMethods

    Returns {
        byId: ((params) => Promise<Message<Linkable>[]>);
        destroy: ((params) => Promise<Notice>);
        list: (() => Promise<Dialog[]>);
    }

    • byId: ((params) => Promise<Message<Linkable>[]>)
        • (params): Promise<Message<Linkable>[]>
        • List messages from a certain dialog

          Requires messages oauth scope

          Parameters

          • params: Id<number>

          Returns Promise<Message<Linkable>[]>

    • destroy: ((params) => Promise<Notice>)
        • (params): Promise<Notice>
        • Delete a dialog

          Requires messages oauth scope

          Parameters

          • params: Id<number>

          Returns Promise<Notice>

    • list: (() => Promise<Dialog[]>)
        • (): Promise<Dialog[]>
        • List dialogs

          Requires messages oauth scope

          Returns Promise<Dialog[]>

Generated using TypeDoc