Skip to content

Acting in a server

Every action is a call on the line. Woosh runs each as your wisp, under its grant and its role in that server, so every check a person meets holds for it too. A call outside the grant (an item it was not given, a channel the grant does not name, a server it is not in) answers refused, not_granted. A check a person would meet answers permission (or not_found for something that is not there), with the words a person would get in w, such as “Missing permission: KickMembers.”. Branch on why; the words are for your log.

Call Needs Spends
send post, in a granted channel the server’s calls, the channel’s lines
edit post, in a granted channel; its own line the server’s calls, that line’s edits
card.live post, in a granted channel; its own line, or one of its private cards while Woosh keeps it the server’s calls and that line’s edits; a private card’s frame, that card’s edits alone
delete a granted channel; its own line, or anyone’s with manage messages the server’s calls
react react, in a granted channel the server’s calls
roles manage roles; each role below its own highest the server’s calls
kick kick members; someone whose highest role is below its own the server’s calls
ban ban members; the same the server’s calls
activity nothing one call every 15 seconds

Every call also spends the line’s own budget. Budgets and limits has the numbers, respond is on Commands, card.live on Live frames, and the reads on Catching up.

Post a line.

{"i":13,"t":"send","d":{"channel":"6d4c2b3e-9f5a-4b7c-8d6e-1f2a3b4c5d66","text":"The jackpot is open. Anyone here can spin.","sendId":"b6c7d8e9-fa0b-4c1d-93e4-f5a6b7c8d9ea"}}
{"r":13,"v":"0199dea4-3397-71a2-b3b4-cf3a4b5c6d87"}
d
channel where: a server channel the grant names
text up to 4,000 characters. Required, but for a line with a card, where Woosh writes it from the card when you leave it out
card a card, on a channel’s line (not in a thread)
replyTo a line in the same channel that this one answers
parent the line whose thread it goes in
sendId an id you make once per line. Required

A card needs no words of yours: Woosh writes the line’s text from it, for any app that does not draw cards (Cards says how):

{"i":14,"t":"send","d":{"channel":"6d4c2b3e-9f5a-4b7c-8d6e-1f2a3b4c5d66","sendId":"c7d8e9fa-0b1c-4d2e-a4f5-a6b7c8d9eafb","card":{"blocks":[{"type":"text","text":"**Jackpot**","size":"large"},{"type":"fields","fields":[{"name":"Pot","value":"12,400 coins"}]}]}}}

v is the line’s id. Make sendId once for each line and send it again with every retry of that line: Woosh never posts the same sendId twice, and a retry of a line already posted answers that line’s id. So a failed or limited send is always safe to repeat. The people looking at the channel hear message; your wisp, which knows what it sent, does not hear it back.

A wisp attaches no files: its pictures go on a card, uploaded first, as Pictures shows.

@ and a member’s name in text mentions them, as a person’s line does (@ana): a notice while they look, a row in their inbox, a push when they are away. Words on a card mention nobody: {user:<id>} there shows a name and tells no one. An edit mentions nobody new.

why
not_granted no post here, or a channel outside the grant
not_found a DM or no such channel, or a parent that is not a line in that channel
invalid neither text nor a card, more than 4,000 characters, or a card with parent

Change your own line. Only what the call names changes, and it names at least one of text, a card or a patch: a card left out keeps the card, and text left out keeps the text, or, when the card changes, is written again by Woosh from the new card. A new card and its words:

{
"i": 60,
"t": "edit",
"d": {
"message": "0199dea4-3064-7e7f-8081-9c0d1e2f3a54",
"text": "Win a monitor. Entries close Sunday 20:00.",
"card": {
"blocks": [
{ "type": "text", "text": "**Win a monitor**", "size": "large" },
{ "type": "text", "key": "closes", "text": "Entries close {in:1792353600000000}." },
{ "type": "progress", "key": "filling", "tone": "good", "value": 4812, "max": 5000, "label": "4,812 of 5,000 entries" },
{ "type": "actions", "actions": [{ "action": "enter", "label": "Enter", "kind": "tally", "tell": true }] }
]
}
}
}
{"r":60}

In place of card you may send a patch, merged into the card the line holds; the line’s text is then written again from the card:

{"i":62,"t":"edit","d":{"message":"0199dea4-3064-7e7f-8081-9c0d1e2f3a54","patch":{"filling":{"type":"progress","tone":"good","value":5000,"max":5000,"label":"Full: 5,000 entries"}}}}

Words alone change the text, and the card stays as it is:

{"i":63,"t":"edit","d":{"message":"0199dea4-3064-7e7f-8081-9c0d1e2f3a54","text":"Entries are closed. Winners at 20:00."}}

A card comes off a line only with the line: delete it. A line in a thread carries no card. A tally’s count on the card stays Woosh’s, whatever an edit says. The people looking hear message.edit, with the whole line as it now stands; your wisp, which knows what it changed, does not hear it back. For frames between edits, which are never stored, see live frames.

Someone else’s line answers {"r":61,"e":"refused","why":"permission","w":"You can only edit your own messages."}. Also refused:

why
not_granted no post here, or a channel outside the grant
not_found no such line
invalid nothing to change; a card and a patch both; a patch for a line without a card; a card for a thread’s line; more than 4,000 characters

Take a line down: your own, or anyone’s with manage messages. A line’s thread goes with it.

{"i":62,"t":"delete","d":{"message":"0199dea4-1d31-7b4c-9d5e-6f7a8b9c0d21"}}
{"r":62}

The people looking hear message.gone. Someone else’s line without manage messages answers {"r":63,"e":"refused","why":"permission","w":"You cannot delete this message."}. A line in a channel outside the grant answers not_granted, and no such line not_found.

Add a reaction with on, take it off without it.

{"i":14,"t":"react","d":{"message":"0199de8f-6c10-7a1b-8c3d-4e5f6a7b8c01","emoji":":fire:","on":true}}
{"i":15,"t":"react","d":{"message":"0199de8f-6c10-7a1b-8c3d-4e5f6a7b8c01","emoji":":fire:"}}
d
message the line, or the reply in a thread
emoji a standard emoji by its name in colons (:fire:), or one of the server’s own as <:name:id>
parent the line whose thread holds it, when message is a reply in a thread
on true adds it; left out takes it off

Each answers an ack ({"r":14}), and the people looking hear reaction. A reaction already there, one that is not there to take off, or a 21st kind on one line changes nothing. not_granted means no react here, or a channel outside the grant.

Give a member roles (add) or take them (remove), role ids each below your wisp’s own highest role. A role it gives may carry only permissions your wisp has itself. The server hears member.roles.

{"i":68,"t":"roles","d":{"server":"5c3b1a2d-8e4f-4a6b-9c7d-0e1f2a3b4c55","user":"7a2e4c19-0b3d-4f6a-8e25-91c3d5f0a622","add":["2d3e4f5a-6b7c-4d8e-9fa0-1b2c3d4e5f60"]}}
{"i":69,"t":"roles","d":{"server":"5c3b1a2d-8e4f-4a6b-9c7d-0e1f2a3b4c55","user":"7a2e4c19-0b3d-4f6a-8e25-91c3d5f0a622","remove":["2d3e4f5a-6b7c-4d8e-9fa0-1b2c3d4e5f60"]}}
why w, for example
invalid neither add nor remove, or the server’s @everyone role “A roles call adds or removes a role.”
permission no manage roles; a role at or above your wisp’s highest; a role with permissions your wisp lacks “Missing permission: ManageRoles.”
not_found someone not in the server, or a role that is not the server’s “Member not found.”

Take a member out of the server, or ban them. They hear it as they would from a person: server.gone, with kicked or banned. A ban holds whether or not they are in the server: while it stands, they cannot join.

{"i":70,"t":"kick","d":{"server":"5c3b1a2d-8e4f-4a6b-9c7d-0e1f2a3b4c55","user":"b84d0e37-5c2a-4e91-a6f3-0d7c8e1b9433"}}
{"i":72,"t":"ban","d":{"server":"5c3b1a2d-8e4f-4a6b-9c7d-0e1f2a3b4c55","user":"b84d0e37-5c2a-4e91-a6f3-0d7c8e1b9433"}}

Nobody kicks or bans the server’s owner: {"r":71,"e":"refused","why":"invalid","w":"The server owner cannot be kicked."}.

why w, for example
permission no kick members or ban members; someone whose highest role is at or above your wisp’s “Missing permission: KickMembers.”
invalid the server’s owner, or your wisp itself “The server owner cannot be banned.”
not_found a kick of someone not in the server, or a ban of someone who does not exist “Member not found.”

Set words of your wisp’s own with activity, up to 1,024 characters. They reach every server your wisp is in, so a wisp may call activity once every 15 seconds; sooner answers limited, budget activity, with the wait.

{"i":9,"t":"activity","d":{"activity":"Spinning the reels"}}

Words last two minutes from the call that set them: to keep them, send them again within that time (the same words again tell nobody). Leave activity out to clear them. The apps show them under your wisp’s name, in member lists and on its profile, as a person’s status is.

A wisp sends no presence: it is online while its line is up, and Woosh keeps that for it.

What your wisp asks for in permissions (when you make it) and what an admin gives it, as bits added together. Your line names them in grants, as the apps do:

Permission Bit In grants Lets it
manage channels 2 manageChannels
manage roles 4 manageRoles roles
manage emoji 8 manageEmojis
kick members 16 kickMembers kick
manage messages 32 manageMessages delete anyone’s line
move members 64 moveMembers
ban members 128 banMembers ban
create invites 256 createInvites
manage invites 512 manageInvites

Administrator is never given to a wisp. No call uses the permissions with nothing beside them, so your wisp has no reason to ask for them.

The permissions sit on a role made for your wisp when it is added, named after it. An admin changes them by changing the wisp’s grant (Quick start), and can also give the role more in the server’s role settings, beyond what your wisp asks for. Either way they reach the whole server, whatever channels the grant names. Your wisp hears them as they stand in each grants event, by the names above (What a wisp hears). Where that role sits among the server’s roles decides whom your wisp can act on, and admins move it like any role.

© 2026 Woosh AS. All rights reserved.