Skip to content

Commit

Permalink
chore: remove deprecated/dead code (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
TTtie authored Oct 14, 2022
1 parent b65af6c commit 75d58b7
Show file tree
Hide file tree
Showing 21 changed files with 176 additions and 702 deletions.
4 changes: 3 additions & 1 deletion examples/applicationCommands.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ const Constants = Dysnomia.Constants;

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

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

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

bot.on("ready", async () => { // When the bot is ready
Expand Down
10 changes: 6 additions & 4 deletions examples/intent.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@ const Dysnomia = require("@projectdysnomai/dysnomia");

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

bot.on("ready", () => { // When the bot is ready
Expand Down
12 changes: 7 additions & 5 deletions examples/sharding.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@ const Dysnomia = require("@projectdysnomia/dysnomia");

// Replace TOKEN with your bot account's token
const bot = new Dysnomia("Bot TOKEN", {
firstShardID: 0,
lastShardID: 15,
maxShards: 16,
getAllUsers: false,
intents: ["guilds", "guildMembers", "guildPresences"]
gateway: {
firstShardID: 0,
lastShardID: 15,
maxShards: 16,
getAllUsers: false,
intents: ["guilds", "guildMembers", "guildPresences"]
}
});

bot.on("ready", () => { // When the bot is ready
Expand Down
Loading

0 comments on commit 75d58b7

Please sign in to comment.