Skip to content

Commit

Permalink
feat!: 事件推送时传出完整负载 (#124)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaikaibenkai authored Mar 17, 2024
1 parent 6d458e8 commit 5aab4e3
Show file tree
Hide file tree
Showing 9 changed files with 788 additions and 998 deletions.
10 changes: 4 additions & 6 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ updates:
directory: /
schedule:
interval: weekly
ignore:
- dependency-name: '@types/node'
groups:
dependencies:
patterns:
- '*'
groups:
dependencies:
patterns:
- '*'
2 changes: 1 addition & 1 deletion examples/src/listen-events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const bot = new Bot(YOUR_BOT_TOKEN)
const bus = await bot.listen()

bus.on('connect', (ev) => {
console.log('Connection opened, id:', ev.data.client_id)
console.log('Connection opened, id:', ev.client_id)
})
bus.on('error', e => console.error('Error occurred:', e))
bus.on('push', (ev) => {
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
},
"devDependencies": {
"@antfu/eslint-config": "^2.6.3",
"@inquirer/prompts": "^4.0.0",
"@inquirer/prompts": "^3.3.0",
"@swc/core": "^1.3.100",
"@swc/helpers": "^0.5.3",
"@swc/jest": "^0.2.29",
Expand All @@ -57,7 +57,7 @@
"typedoc": "^0.25.7",
"typedoc-plugin-markdown": "^3.17.1",
"typescript": "^5.1.6",
"vitepress": "1.0.0-rc.44",
"vitepress": "1.0.0-rc.40",
"vue": "^3.3.12"
},
"publishConfig": {
Expand Down
Loading

0 comments on commit 5aab4e3

Please sign in to comment.