-
Notifications
You must be signed in to change notification settings - Fork 15
v2.chat.channels.messages.send
cyperdark edited this page May 23, 2023
·
3 revisions
Send message to chat channel
const { auth } = require('osu-api-extended');
await auth.login_lazer(username, password);
await v2.chat.channels.messages.send(channel_id, message, is_action)
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 |
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;
};
}