Skip to content

Commit ab54ac6

Browse files
committed
docs(rootEmbed): migrate to discord.js 14
1 parent e4be713 commit ab54ac6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

examples/rootEmbed.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,15 @@ import { PagesBuilder } from 'discord.js-pages';
33

44
const client = new Client({
55
intents: [
6-
'GUILDS'
6+
'Guilds'
77
]
88
});
99

1010
client.on('interactionCreate', (interaction) => {
11+
if (!interaction.isCommand()) {
12+
return;
13+
}
14+
1115
/*
1216
PagesBuilder extends the MessageEmbed class, it inherits all of its methods and properties.
1317
You can add new properties using methods.

0 commit comments

Comments
 (0)