UNPKG

osu-api-extended

Version:

Advanced osu! api wrapper for v1 and v2, with extra stuff

41 lines (40 loc) 1.02 kB
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: []; } export interface types { /** * Join channel by id * * ## Example * * ```js * const { v2, auth } = require('osu-api-extended'); * * const main = async () => { * await auth.login_lazer(USERNAME, USER_PASSWORD); * * const v2_chat_channels_join = await v2.chat.channels.join(channel_id, user_id); * console.log(v2_chat_channels_join); * }; * * main(); * ``` * @param {number} channel_id Channel id * @param {number} user_id User id */ (channel_id: number, user_id: number): Promise<response>; }