mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 08:47:22 +00:00
feat: internal intents resolution (#390)
* better intents typing * Update README.md * Update mod.test.ts * support enum too
This commit is contained in:
@@ -28,11 +28,11 @@ If you do not wish to use a boilerplate, you may continue reading.
|
||||
Here's a minimal example to get started with:
|
||||
|
||||
```typescript
|
||||
import { Intents, startBot } from "https://deno.land/x/discordeno@10.0.1/mod.ts";
|
||||
import { startBot } from "https://deno.land/x/discordeno/mod.ts";
|
||||
|
||||
startBot({
|
||||
token: "BOT TOKEN",
|
||||
intents: [Intents.GUILDS, Intents.GUILD_MESSAGES],
|
||||
intents: ["GUILDS", "GUILD_MESSAGES"],
|
||||
eventHandlers: {
|
||||
ready() {
|
||||
console.log("Successfully connected to gateway");
|
||||
|
||||
Reference in New Issue
Block a user