Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
node_modules
dist
.git
.gitignore

npm-debug.log
.env
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ in this package, `detritus-client`. Low-level wrappers over Discord's REST API a
are provided through [`detritus-client-rest`](https://github.com/detritusjs/client-rest) and
[`detritus-client-socket`](https://github.com/detritusjs/client-socket).

- `$ npm i detritus-client`
- `$ yarn add detritus-client`
- ```npm install detritus-client```
- ```yarn add detritus-client```
- ```pnpm install detritus-client```

## Usage

Expand Down Expand Up @@ -44,7 +45,7 @@ const { CommandClient } = require('detritus-client');
const token = '';
const commandClient = new CommandClient(token, {
// Prefix `..`, if you want multiple prefixes pass in `prefixes: ['..', '...']`
prefix: '..',
prefix: '!',
});

// Simple ping/pong command
Expand Down Expand Up @@ -171,7 +172,7 @@ const { ShardClient } = require('detritus-client');
//
// Tokens should be considered secrets and stored in a configuration file that is not
// part of your version control system, or an environment variable.
const token = '';
const token = 'TOKEN_BOT';
const client = new ShardClient(token, {
gateway: {
// This will tell our client to fill our Members cache on any of our guilds that are larger than the large threshold you pass in (default 250)
Expand Down
Loading