@discordeno/types 19.0.0-next.2dafa8f → 19.0.0-next.2f89d4d
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.
- package/README.md +6 -10
- package/dist/cjs/camel.cjs +6 -0
- package/dist/cjs/discord.cjs +292 -0
- package/dist/cjs/discordeno.cjs +17 -0
- package/dist/cjs/index.cjs +23 -0
- package/dist/cjs/shared.cjs +867 -0
- package/dist/esm/camel.js +3 -0
- package/dist/esm/discord.js +229 -0
- package/dist/esm/discordeno.js +7 -0
- package/dist/esm/index.js +6 -0
- package/dist/esm/shared.js +702 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/dist/types/camel.d.ts +335 -0
- package/dist/types/camel.d.ts.map +1 -0
- package/dist/{discord.d.ts → types/discord.d.ts} +988 -69
- package/dist/types/discord.d.ts.map +1 -0
- package/dist/{discordeno.d.ts → types/discordeno.d.ts} +414 -97
- package/dist/types/discordeno.d.ts.map +1 -0
- package/dist/{index.d.ts → types/index.d.ts} +1 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/{shared.d.ts → types/shared.d.ts} +198 -32
- package/dist/types/shared.d.ts.map +1 -0
- package/package.json +26 -10
- package/dist/discord.d.ts.map +0 -1
- package/dist/discord.js +0 -2
- package/dist/discordeno.d.ts.map +0 -1
- package/dist/discordeno.js +0 -2
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -2
- package/dist/shared.d.ts.map +0 -1
- package/dist/shared.js +0 -2
package/README.md
CHANGED
|
@@ -103,28 +103,24 @@ Have your cache setup in any way you like. Redis, PGSQL or any cache layer you w
|
|
|
103
103
|
Here is a minimal example to get started with:
|
|
104
104
|
|
|
105
105
|
```typescript
|
|
106
|
-
import {
|
|
107
|
-
createBot,
|
|
108
|
-
Intents,
|
|
109
|
-
startBot,
|
|
110
|
-
} from "https://deno.land/x/discordeno@13.0.0/mod.ts";
|
|
106
|
+
import { createBot, Intents, startBot } from 'https://deno.land/x/discordeno@13.0.0/mod.ts'
|
|
111
107
|
|
|
112
108
|
const bot = createBot({
|
|
113
109
|
token: process.env.DISCORD_TOKEN,
|
|
114
110
|
intents: Intents.Guilds | Intents.GuildMessages,
|
|
115
111
|
events: {
|
|
116
112
|
ready() {
|
|
117
|
-
console.log(
|
|
113
|
+
console.log('Successfully connected to gateway')
|
|
118
114
|
},
|
|
119
115
|
},
|
|
120
|
-
})
|
|
116
|
+
})
|
|
121
117
|
|
|
122
118
|
// Another way to do events
|
|
123
119
|
bot.events.messageCreate = function (b, message) {
|
|
124
120
|
// Process the message here with your command handler.
|
|
125
|
-
}
|
|
121
|
+
}
|
|
126
122
|
|
|
127
|
-
await startBot(bot)
|
|
123
|
+
await startBot(bot)
|
|
128
124
|
```
|
|
129
125
|
|
|
130
126
|
### Tools
|
|
@@ -153,6 +149,6 @@ and unofficial templates:
|
|
|
153
149
|
|
|
154
150
|
## Links
|
|
155
151
|
|
|
156
|
-
- [Website](https://discordeno.
|
|
152
|
+
- [Website](https://discordeno.js.org/)
|
|
157
153
|
- [Documentation](https://doc.deno.land/https/deno.land/x/discordeno/mod.ts)
|
|
158
154
|
- [Discord](https://discord.com/invite/5vBgXk3UcZ)
|