Skip to content

Commit 0e1f88a

Browse files
docs: improve example docs
1 parent 92c38aa commit 0e1f88a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

example/util/update-commands.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
import { REST, Routes } from 'discord.js';
2+
3+
/**
4+
* 👇 when using the library, change the import paths to 'discordjs-typed-commands'
5+
*
6+
* import type { ReadonlyCommandList } from 'discordjs-typed-commands'';
7+
*/
28
import type { ReadonlyCommandList } from '../../src/index.js';
39

410
export async function updateCommands(commands: ReadonlyCommandList, credentials: { token: string, clientId: string, serverId: string }) {

0 commit comments

Comments
 (0)