Skip to content

v2.chat.channels.messages.send

cyperdark edited this page May 23, 2023 · 3 revisions

Send message to chat channel

Authentication

const { auth } = require('osu-api-extended');
await auth.login_lazer(username, password);

Function

await v2.chat.channels.messages.send(channel_id, message, is_action)

Parameters

Parameter Type Description
channel_id number The channel_id of the channel to send message to
message number Message to send
is_action number Whether the message is an action

Response

export interface response {
  channel_id: number;
  content: number;
  is_action: boolean;
  message_id: number;
  sender_id: number;
  timestamp: string;
  type: string;
  sender: {
    avatar_url: string;
    country_code: string;
    default_group: string;
    id: number;
    is_active: boolean;
    is_bot: boolean;
    is_deleted: boolean;
    is_online: boolean;
    is_supporter: boolean;
    last_visit: string;
    pm_friends_only: boolean;
    profile_colour: string;
    username: string;
  };
}

[v3.x.x] Documentation


[v2.x.x] Documentation

Clone this wiki locally