Update README.md

resolve import problem
This commit is contained in:
Marcos Susaña 2022-07-30 14:07:07 -04:00 committed by GitHub
parent 4848e9d424
commit 843765647c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,7 +29,8 @@ that you should not make software that does things it is not supposed to do.
### Example bot (TS/JS) ### Example bot (TS/JS)
```js ```js
import { Session, GatewayIntents } from '@biscuitland/core'; import { Session } from '@biscuitland/core';
import { GatewayIntents } from '@biscuitland/api-types';
const intents = GatewayIntents.MessageContent | GatewayIntents.Guilds | GatewayIntents.GuildMessages; const intents = GatewayIntents.MessageContent | GatewayIntents.Guilds | GatewayIntents.GuildMessages;
const session = new Session({ token: 'your token', intents }); const session = new Session({ token: 'your token', intents });