Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed some example codes #1564

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
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
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@ Ping Pong Example
const Eris = require("eris");

// Replace TOKEN with your bot account's token
const bot = new Eris("Bot TOKEN", {
const bot = Eris("Bot TOKEN", {
intents: [
"guildMessages"
"guildMessages",
"messageContent"
]
});

Expand Down
2 changes: 1 addition & 1 deletion examples/applicationCommands.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const Eris = require("eris");
const Constants = Eris.Constants;

// Replace TOKEN with your bot account's token
const bot = new Eris("BOT TOKEN", {
const bot = Eris("BOT TOKEN", {
intents: [], // No intents are needed for interactions, but you still need to specify either an empty array or 0
});

Expand Down
4 changes: 2 additions & 2 deletions examples/components.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ const Eris = require("eris");
const Constants = Eris.Constants;

// Replace TOKEN with your bot account's token
const bot = new Eris("BOT TOKEN", {
intents: ["guildMessages"],
const bot = Eris("BOT TOKEN", {
intents: ["guildMessages", "messageContent"],
});

bot.on("ready", async () => { // When the bot is ready
Expand Down
4 changes: 3 additions & 1 deletion examples/embed.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
const Eris = require("eris");

// Replace TOKEN with your bot account's token
const bot = new Eris("Bot TOKEN");
const bot = Eris("Bot TOKEN", {
intents: ["guildMessages", "messageContent"],
});

bot.on("ready", () => { // When the bot is ready
console.log("Ready!"); // Log "Ready!"
Expand Down
2 changes: 1 addition & 1 deletion examples/intent.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const Eris = require("eris");

// Replace TOKEN with your bot account's token
const bot = new Eris("Bot TOKEN", {
const bot = Eris("Bot TOKEN", {
intents: [
"guilds",
"guildMessages",
Expand Down
2 changes: 1 addition & 1 deletion examples/pingpong.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const Eris = require("eris");

// Replace TOKEN with your bot account's token
const bot = new Eris("Bot TOKEN");
const bot = Eris("Bot TOKEN");

bot.on("ready", () => { // When the bot is ready
console.log("Ready!"); // Log "Ready!"
Expand Down
2 changes: 1 addition & 1 deletion examples/playFile.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const Eris = require("eris");

// Replace TOKEN with your bot account's token
const bot = new Eris("Bot TOKEN");
const bot = Eris("Bot TOKEN");

const playCommand = "!play";

Expand Down
2 changes: 1 addition & 1 deletion examples/sharding.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const Eris = require("eris");

// Replace TOKEN with your bot account's token
const bot = new Eris("Bot TOKEN", {
const bot = Eris("Bot TOKEN", {
firstShardID: 0,
lastShardID: 15,
maxShards: 16,
Expand Down