osu-api-v2-js
    Preparing search index...

    Function sendPrivate

    • Send a private message to someone!

      Parameters

      • this: API
      • user_target: number | User

        The User you wanna send your message to!

      • message: string

        The message you wanna send

      • is_action: boolean = false

        Is it a command? Like /me dances (defaults to false)

      • Optionaluuid: string

        A client-side message identifier

      Returns Promise<{ channel: Chat.Channel; message: WithSender }>

      The message you sent

      You don't need to use createChatPrivateChannel before sending a message