Packets ‐ To server - Flufi-Boi/Fluficord GitHub Wiki
General
ping
{
"cmd": "ping"
}
sends a ping to the server, used for getting general and also to let the server know your online.
quit
{
"cmd": "quit"
}
tells the server the client is quitting, and so turns off the users's online indicator and stops packets being sent.
Channels
channel_list
{
"cmd": "channel_list"
}
asks the server for a list of (accessable) channel names.
channel_get
{
"cmd": "channel_get",
"data": "channel id"
}
asks the server for a channel's data.
channel_messages
{
"cmd": "channel_messages",
"data": "channel id",
"amount": 100 // amount of messages to grab
}
asks the server for a list of messages ids in a channel.
channel_users
{
"cmd": "channel_users",
"data": "channel id"
}
asks the server for a list of users that can access the channel
Messages
message_send
{
"cmd": "message_send",
"data": {
"content": "the text of the message :3",
"attachments": [], // not implemented yet :p
"reply": "null for no reply or a message id"
},
"channel": "channel name"
}
sends a message
message_get
{
"cmd": "message_get",
"data": "message id"
}
asks the server for a message's data
message_delete
{
"cmd": "message_delete",
"data": "message id",
"channel": "channel name"
}
deletes a message (must be your own or have mod)
Users
user_online
{
"cmd": "user_online"
}
asks the server for a list of online users
user_settings_get
{
"cmd": "user_settings_get"
}
asks the server for the user's settings
users_settings_set
{
"cmd": "user_settings_set",
"key": "key",
"values": "value"
}
sets a user's setting
user_roles_get
{
"cmd": "user_roles_get",
"key": "username",
}
asks for a user's roles
user_tags_get
{
"cmd": "user_tags_get",
"key": "username"
}
asks for a user's tags (icons next to username)
Emotes (reactions)
emote_toggle
{
"cmd": "emote_toggle",
"message": "message id",
"emote": "emote name"
}
toggles if an emote has been used or not by the user