Packets ‐ From server - Flufi-Boi/Fluficord GitHub Wiki

General

ping

{
  "cmd": "ping"
}

lets the client know the server is online.

killshutthefuckupidontwantpingsanymoresoshush

{
  "cmd": "killshutthefuckupidontwantpingsanymoresoshush"
}

a very normal command name which just tells the client to not send any more packets to the server.

notif

{
  "cmd": "notif",
  "text": "notification context",
  "icon": "icn code",
  "title": "the notifcation title",
  "doAnyway"?: true/false
}

sends a notification

comb

{
  "cmd": "comb",
  "packets": [
    
  ]
}

Channels

channel_list

{
  "cmd": "channel_list",
  "data": ["general", "random"]
}

list of channels

channel_get

{
  "cmd": "channel_get",
  "key": "general",
  "data": {
    "type": "text"
  }
}

channel's data

channel_messages

{
  "cmd": "channel_messages",
  "key": "general",
  "data": ["msgid1", "msgid2", "msgid3"]
}

channel's messages

channel_users

{
  "cmd": "channel_users",
  "key": "general",
  "data": ["user1", "user2", "user3"]
}

channel users

Messages

message_get

{
  "cmd": "message_get",
  "key": "message id",
  "data": {
    "user": "username",
    "content": "message text",
    "timestamp": 1234567890,
    "emotes": {},
    "cacheID": "randomstring"
  }
}

message data

Users

user_settings_get

{
  "cmd": "user_settings_get",
  "data": {
    "notifs": false,
    "bg": false,
    "showEmoteUsers": false
  }
}

a user's settings

user_online

{
  "cmd": "user_online",
  "data": ["user1", "user2"]
}

list of users currently online

user_tags_get

{
  "cmd": "user_tags_get",
  "data": [
    {
      "icon_name": "tags.fluficordPlus",
      "icon": "add",
      "tooltip": "Fluficord+ user",
      "size": 0.9,
      "color": "#e89015"
    }
  ]
}

a user's tags

user_roles_get

{
  "cmd": "user_roles_get",
  "key": "user",
  "data": [
    "role1",
    "role2"
  ]
}

a user's tags

user_get

{
  "cmd": "user_get",
  "data": {
    "roles": ["funny", "role2"]
  }
}

get's user data

is_mod

{
  "cmd": "is_mod",
  "data": true/false
}

returns if the user is a mod or not

Emotes

{
  "cmd": "emote_list",
  "data": {
    "a": {
      "icon": "icn code",
      "text": "!"
    },
    "b": {
      "icon": "icn code",
      "text": "#"
    }
  }
}

list of emotes

Roles

roles_list

{
  "cmd": "roles_list",
  "data": [
    {
      "icon": "icn code",
      "icon_name": "mod",
      "description": "Moderator",
      "color": "#FFD700"
    }
  ]
}

list of roles

Updates

update_messages

{
  "cmd": "update_messages",
  "data": "channel name"
}

asks the client to send a request back to the server for updating a channel's mesasges (ik how goofy this is).

update_users

{
  "cmd": "update_users"
}

similar to update_messages just for users (and not in a channel)