@tusile/bot 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +5 -4
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -119,7 +119,7 @@ await i.reply({
119
119
  components: [
120
120
  { type: 'button', style: 'primary', label: 'Press me', custom_id: 'vote:yes' },
121
121
  { type: 'button', style: 'danger', label: 'No', custom_id: 'vote:no' },
122
- { type: 'button', style: 'link', label: 'Docs', url: 'https://tusile.com/bots.html' },
122
+ { type: 'button', style: 'link', label: 'Docs', url: 'https://tusile.com/bots' },
123
123
  ],
124
124
  }],
125
125
  });
@@ -133,8 +133,9 @@ whatever state you need in it: `page:3`, `vote:close:99`. An exactly registered
133
133
  a prefix, and the longest matching prefix wins, so a general handler cannot swallow presses
134
134
  meant for a specific one.
135
135
 
136
- Button styles are `primary`, `secondary`, `success`, `danger` and `link` (which takes a
137
- `url` instead of a `custom_id`). A row can hold five buttons, or one select.
136
+ Button styles are `primary`, `secondary`, `danger` and `link` (which takes a `url` instead
137
+ of a `custom_id`). Anything else draws as a plain button rather than not at all. A row can
138
+ hold five buttons, or one select.
138
139
 
139
140
  ## Forms
140
141
 
@@ -233,6 +234,6 @@ commands, a custom status line, gateway resume after a drop (it reconnects and r
233
234
  instead), and outbound webhooks.
234
235
 
235
236
  Full reference, including every field of an embed, a component and a command option:
236
- **https://tusile.com/bots.html**
237
+ **https://tusile.com/bots**
237
238
 
238
239
  MIT licensed.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tusile/bot",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Write a Tusile bot: slash commands, buttons, forms and voice, over an outbound WebSocket.",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -27,7 +27,7 @@
27
27
  "chat",
28
28
  "slash-commands"
29
29
  ],
30
- "homepage": "https://tusile.com/bots.html",
30
+ "homepage": "https://tusile.com/bots",
31
31
  "license": "MIT",
32
32
  "author": "Tusile"
33
33
  }