feat: internal intents resolution (#390)

* better intents typing

* Update README.md

* Update mod.test.ts

* support enum too
This commit is contained in:
ITOH
2021-01-19 12:18:13 +04:00
committed by GitHub
parent 8b663ca4de
commit e56d67a138
4 changed files with 7 additions and 7 deletions
+2 -2
View File
@@ -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");