Skip to content

v2.chat.channels.join

cyperdark edited this page May 23, 2023 · 1 revision

Join channel by id

Authentication

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

Function

await v2.chat.channels.join(channel_id, user_id)

Parameters

Parameter Type Description
channel_id number Channel id
user_id number User id

Response

export interface response {
  channel_id: number;
  description: string;
  icon: string;
  moderated: boolean;
  name: string;
  type: string;
  uuid: string;
  current_user_attributes: {
    can_message: boolean;
    can_message_error: string;
    last_read_id: string;
  };
  last_message_id: number;
  last_read_id: string;
  users: [];
}

[v3.x.x] Documentation


[v2.x.x] Documentation

Clone this wiki locally