Skip to content

Commit

Permalink
breaking: Remove all user account features (#1338)
Browse files Browse the repository at this point in the history
Co-authored-by: TTtie <me@tttie.cz>
  • Loading branch information
bsian03 and TTtie authored Aug 22, 2024
1 parent 0c22f54 commit 0b3ef10
Show file tree
Hide file tree
Showing 19 changed files with 111 additions and 1,329 deletions.
2 changes: 0 additions & 2 deletions esm.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ export const {
AutocompleteInteraction,
Base,
Bucket,
Call,
CategoryChannel,
Channel,
Client,
Expand Down Expand Up @@ -45,7 +44,6 @@ export const {
PrivateChannel,
PrivateThreadChannel,
PublicThreadChannel,
Relationship,
RequestHandler,
Role,
SequentialBucket,
Expand Down
234 changes: 8 additions & 226 deletions index.d.ts

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ Eris.ApplicationCommand = require("./lib/structures/ApplicationCommand");
Eris.AutocompleteInteraction = require("./lib/structures/AutocompleteInteraction");
Eris.Base = require("./lib/structures/Base");
Eris.Bucket = require("./lib/util/Bucket");
Eris.Call = require("./lib/structures/Call");
Eris.CategoryChannel = require("./lib/structures/CategoryChannel");
Eris.Channel = require("./lib/structures/Channel");
Eris.Client = Client;
Expand Down Expand Up @@ -46,7 +45,6 @@ Eris.PingInteraction = require("./lib/structures/PingInteraction");
Eris.PrivateChannel = require("./lib/structures/PrivateChannel");
Eris.PrivateThreadChannel = require("./lib/structures/PrivateThreadChannel");
Eris.PublicThreadChannel = require("./lib/structures/PublicThreadChannel");
Eris.Relationship = require("./lib/structures/Relationship");
Eris.RequestHandler = require("./lib/rest/RequestHandler");
Eris.Role = require("./lib/structures/Role");
Eris.SequentialBucket = require("./lib/util/SequentialBucket");
Expand Down
413 changes: 11 additions & 402 deletions lib/Client.js

Large diffs are not rendered by default.

4 changes: 1 addition & 3 deletions lib/Constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -236,9 +236,7 @@ module.exports.GatewayOPCodes = {
REQUEST_GUILD_MEMBERS: 8, GET_GUILD_MEMBERS: 8, // [DEPRECATED]
INVALID_SESSION: 9,
HELLO: 10,
HEARTBEAT_ACK: 11,
SYNC_GUILD: 12,
SYNC_CALL: 13
HEARTBEAT_ACK: 11
};

module.exports.GuildFeatures = [
Expand Down
34 changes: 17 additions & 17 deletions lib/command/Command.js
Original file line number Diff line number Diff line change
Expand Up @@ -514,34 +514,34 @@ class Command {

toJSON(props = []) {
return Base.prototype.toJSON.call(this, [
"parentCommand",
"label",
"description",
"fullDescription",
"usage",
"aliases",
"caseInsensitive",
"hooks",
"requirements",
"deleteCommand",
"argsRequired",
"guildOnly",
"dmOnly",
"caseInsensitive",
"cooldown",
"cooldownExclusions",
"restartCooldown",
"cooldownReturns",
"cooldownMessage",
"cooldownReturns",
"defaultSubcommandOptions",
"deleteCommand",
"description",
"dmOnly",
"errorMessage",
"execute",
"fullDescription",
"guildOnly",
"hidden",
"hooks",
"invalidUsageMessage",
"label",
"parentCommand",
"permissionMessage",
"errorMessage",
"reactionButtons",
"reactionButtonTimeout",
"execute",
"defaultSubcommandOptions",
"requirements",
"restartCooldown",
"subcommands",
"subcommandAliases",
"hidden",
"usage",
...props
]);
}
Expand Down
6 changes: 3 additions & 3 deletions lib/command/CommandClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -442,11 +442,11 @@ class CommandClient extends Client {

toJSON(props = []) {
return super.toJSON([
"activeMessages",
"commandAliases",
"commandOptions",
"guildPrefixes",
"commands",
"commandAliases",
"activeMessages",
"guildPrefixes",
...props
]);
}
Expand Down
Loading

0 comments on commit 0b3ef10

Please sign in to comment.