🐛 fix export

This commit is contained in:
Flam3rboy 2021-02-12 11:42:43 +01:00
parent 7f24f0894b
commit 6a1d196565
5 changed files with 81 additions and 176 deletions

48
dist/index.d.ts vendored
View File

@ -1,26 +1,26 @@
import { checkToken } from "./util/checkToken";
export * from "./util/checkToken";
export * as Constants from "./util/Constants";
export * from "./models/Channel";
export * from "./models/Emoji";
export * from "./models/Guild";
export * from "./models/Invite";
export * from "./models/Member";
export * from "./models/Role";
export * from "./models/User";
export * from "./models/Activity";
export * from "./models/Application";
export * from "./models/Interaction";
export * from "./models/Message";
export * from "./models/Status";
export * from "./models/VoiceState";
export * from "./util/String";
export * from "./util/BitField";
export * from "./util/Intents";
export * from "./util/MessageFlags";
export * from "./util/Permissions";
export * from "./util/Snowflake";
export * from "./util/UserFlags";
export * from "./models/Event";
import Config, { DefaultOptions } from "./util/Config";
import db from "./util/Database";
import * as Constants from "./util/Constants";
import { Channel, ChannelType, DMChannel, GuildChannel, ReadState, TextBasedChannel, TextChannel, VoiceChannel } from "./models/Channel";
import { Emoji } from "./models/Emoji";
import { Guild } from "./models/Guild";
import { Invite } from "./models/Invite";
import { Member, MuteConfig, PublicMember, UserGuildSettings } from "./models/Member";
import { Role } from "./models/Role";
import { User, ConnectedAccount, PublicUser, Relationship, UserSettings } from "./models/User";
import { Activity, ActivityType, Presence } from "./models/Activity";
import { ApplicationCommand, ApplicationCommandInteractionData, ApplicationCommandInteractionDataOption, ApplicationCommandOption, ApplicationCommandOptionChoice, ApplicationCommandOptionType } from "./models/Application";
import { ApplicationCommandPayload, EVENT, Event, MessagePayload } from "./models/Event";
import { Interaction, InteractionApplicationCommandCallbackData, InteractionResponseType, InteractionType } from "./models/Interaction";
import { AllowedMentions, Attachment, Embed, EmbedImage, Message, MessageType, PartialEmoji, Reaction } from "./models/Message";
import { ClientStatus, Status } from "./models/Status";
import { VoiceState } from "./models/VoiceState";
import { trimSpecial } from "./util/String";
import { BitField } from "./util/BitField";
import { Intents } from "./util/Intents";
import { MessageFlags } from "./util/MessageFlags";
import { Permissions } from "./util/Permissions";
import { Snowflake } from "./util/Snowflake";
import { UserFlags } from "./util/UserFlags";
export { trimSpecial, checkToken, Config, Constants, db, Activity, ActivityType, Presence, BitField, DefaultOptions, Permissions, VoiceState, Snowflake, Intents, Channel, ChannelType, DMChannel, GuildChannel, ReadState, TextBasedChannel, TextChannel, VoiceChannel, Emoji, Guild, Invite, Member, ClientStatus, Status, MuteConfig, PublicMember, UserGuildSettings, Role, User, UserFlags, UserSettings, ConnectedAccount, PublicUser, Relationship, EVENT, Event, MessageType, Message, MessageFlags, MessagePayload, AllowedMentions, Attachment, Embed, EmbedImage, PartialEmoji, Reaction, Interaction, InteractionApplicationCommandCallbackData, InteractionResponseType, InteractionType, ApplicationCommand, ApplicationCommandPayload, ApplicationCommandInteractionData, ApplicationCommandInteractionDataOption, ApplicationCommandOption, ApplicationCommandOptionChoice, ApplicationCommandOptionType, };
export { Config, db, DefaultOptions };

57
dist/index.js vendored
View File

@ -11,6 +11,9 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
}) : function(o, v) {
o["default"] = v;
});
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
@ -22,39 +25,33 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.ApplicationCommandOptionType = exports.InteractionType = exports.InteractionResponseType = exports.MessageFlags = exports.MessageType = exports.UserFlags = exports.ChannelType = exports.Intents = exports.Snowflake = exports.Permissions = exports.DefaultOptions = exports.BitField = exports.ActivityType = exports.db = exports.Constants = exports.Config = exports.checkToken = exports.trimSpecial = void 0;
const checkToken_1 = require("./util/checkToken");
Object.defineProperty(exports, "checkToken", { enumerable: true, get: function () { return checkToken_1.checkToken; } });
exports.DefaultOptions = exports.db = exports.Config = exports.Constants = void 0;
__exportStar(require("./util/checkToken"), exports);
exports.Constants = __importStar(require("./util/Constants"));
__exportStar(require("./models/Channel"), exports);
__exportStar(require("./models/Emoji"), exports);
__exportStar(require("./models/Guild"), exports);
__exportStar(require("./models/Invite"), exports);
__exportStar(require("./models/Member"), exports);
__exportStar(require("./models/Role"), exports);
__exportStar(require("./models/User"), exports);
__exportStar(require("./models/Activity"), exports);
__exportStar(require("./models/Application"), exports);
__exportStar(require("./models/Interaction"), exports);
__exportStar(require("./models/Message"), exports);
__exportStar(require("./models/Status"), exports);
__exportStar(require("./models/VoiceState"), exports);
__exportStar(require("./util/String"), exports);
__exportStar(require("./util/BitField"), exports);
__exportStar(require("./util/Intents"), exports);
__exportStar(require("./util/MessageFlags"), exports);
__exportStar(require("./util/Permissions"), exports);
__exportStar(require("./util/Snowflake"), exports);
__exportStar(require("./util/UserFlags"), exports);
__exportStar(require("./models/Event"), exports);
const Config_1 = __importStar(require("./util/Config"));
exports.Config = Config_1.default;
Object.defineProperty(exports, "DefaultOptions", { enumerable: true, get: function () { return Config_1.DefaultOptions; } });
const Database_1 = __importDefault(require("./util/Database"));
exports.db = Database_1.default;
const Constants = __importStar(require("./util/Constants"));
exports.Constants = Constants;
const Channel_1 = require("./models/Channel");
Object.defineProperty(exports, "ChannelType", { enumerable: true, get: function () { return Channel_1.ChannelType; } });
const Activity_1 = require("./models/Activity");
Object.defineProperty(exports, "ActivityType", { enumerable: true, get: function () { return Activity_1.ActivityType; } });
const Application_1 = require("./models/Application");
Object.defineProperty(exports, "ApplicationCommandOptionType", { enumerable: true, get: function () { return Application_1.ApplicationCommandOptionType; } });
const Interaction_1 = require("./models/Interaction");
Object.defineProperty(exports, "InteractionResponseType", { enumerable: true, get: function () { return Interaction_1.InteractionResponseType; } });
Object.defineProperty(exports, "InteractionType", { enumerable: true, get: function () { return Interaction_1.InteractionType; } });
const Message_1 = require("./models/Message");
Object.defineProperty(exports, "MessageType", { enumerable: true, get: function () { return Message_1.MessageType; } });
const String_1 = require("./util/String");
Object.defineProperty(exports, "trimSpecial", { enumerable: true, get: function () { return String_1.trimSpecial; } });
const BitField_1 = require("./util/BitField");
Object.defineProperty(exports, "BitField", { enumerable: true, get: function () { return BitField_1.BitField; } });
const Intents_1 = require("./util/Intents");
Object.defineProperty(exports, "Intents", { enumerable: true, get: function () { return Intents_1.Intents; } });
const MessageFlags_1 = require("./util/MessageFlags");
Object.defineProperty(exports, "MessageFlags", { enumerable: true, get: function () { return MessageFlags_1.MessageFlags; } });
const Permissions_1 = require("./util/Permissions");
Object.defineProperty(exports, "Permissions", { enumerable: true, get: function () { return Permissions_1.Permissions; } });
const Snowflake_1 = require("./util/Snowflake");
Object.defineProperty(exports, "Snowflake", { enumerable: true, get: function () { return Snowflake_1.Snowflake; } });
const UserFlags_1 = require("./util/UserFlags");
Object.defineProperty(exports, "UserFlags", { enumerable: true, get: function () { return UserFlags_1.UserFlags; } });
//# sourceMappingURL=index.js.map

2
dist/index.js.map vendored
View File

@ -1 +1 @@
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAA+C;AA4D9C,2FA5DQ,uBAAU,OA4DR;AA3DX,wDAAuD;AA4DtD,iBA5DM,gBAAM,CA4DN;AAON,+FAnEgB,uBAAc,OAmEhB;AAlEf,+DAAiC;AA6DhC,aA7DM,kBAAE,CA6DN;AA3DH,4DAA8C;AA0D7C,8BAAS;AAzDV,8CAS0B;AA4DzB,4FAnEA,qBAAW,OAmEA;AArDZ,gDAAqE;AA4CpE,6FA5CkB,uBAAY,OA4ClB;AA3Cb,sDAO8B;AA0F7B,6GA3FA,0CAA4B,OA2FA;AAxF7B,sDAK8B;AA2E7B,wGA7EA,qCAAuB,OA6EA;AACvB,gGA7EA,6BAAe,OA6EA;AA3EhB,8CAS0B;AAqDzB,4FAxDA,qBAAW,OAwDA;AAjDZ,0CAA4C;AAS3C,4FATQ,oBAAW,OASR;AARZ,8CAA2C;AAgB1C,yFAhBQ,mBAAQ,OAgBR;AAfT,4CAAyC;AAoBxC,wFApBQ,iBAAO,OAoBR;AAnBR,sDAAmD;AAgDlD,6FAhDQ,2BAAY,OAgDR;AA/Cb,oDAAiD;AAehD,4FAfQ,yBAAW,OAeR;AAdZ,gDAA6C;AAgB5C,0FAhBQ,qBAAS,OAgBR;AAfV,gDAA6C;AAoC5C,0FApCQ,qBAAS,OAoCR"}
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAAkC;AAElC,8DAA8C;AAC9C,mDAAiC;AACjC,iDAA+B;AAC/B,iDAA+B;AAC/B,kDAAgC;AAChC,kDAAgC;AAChC,gDAA8B;AAC9B,gDAA8B;AAC9B,oDAAkC;AAClC,uDAAqC;AACrC,uDAAqC;AACrC,mDAAiC;AACjC,kDAAgC;AAChC,sDAAoC;AAEpC,gDAA8B;AAC9B,kDAAgC;AAChC,iDAA+B;AAC/B,sDAAoC;AACpC,qDAAmC;AACnC,mDAAiC;AACjC,mDAAiC;AACjC,iDAA+B;AAE/B,wDAAuD;AAG9C,iBAHF,gBAAM,CAGE;AAAM,+FAHJ,uBAAc,OAGI;AAFnC,+DAAiC;AAEhB,aAFV,kBAAE,CAEU"}

View File

@ -1,121 +1,30 @@
import { checkToken } from "./util/checkToken";
export * from "./util/checkToken";
export * as Constants from "./util/Constants";
export * from "./models/Channel";
export * from "./models/Emoji";
export * from "./models/Guild";
export * from "./models/Invite";
export * from "./models/Member";
export * from "./models/Role";
export * from "./models/User";
export * from "./models/Activity";
export * from "./models/Application";
export * from "./models/Interaction";
export * from "./models/Message";
export * from "./models/Status";
export * from "./models/VoiceState";
export * from "./util/String";
export * from "./util/BitField";
export * from "./util/Intents";
export * from "./util/MessageFlags";
export * from "./util/Permissions";
export * from "./util/Snowflake";
export * from "./util/UserFlags";
export * from "./models/Event";
import Config, { DefaultOptions } from "./util/Config";
import db from "./util/Database";
import * as Constants from "./util/Constants";
import {
Channel,
ChannelType,
DMChannel,
GuildChannel,
ReadState,
TextBasedChannel,
TextChannel,
VoiceChannel,
} from "./models/Channel";
import { Emoji } from "./models/Emoji";
import { Guild } from "./models/Guild";
import { Invite } from "./models/Invite";
import { Member, MuteConfig, PublicMember, UserGuildSettings } from "./models/Member";
import { Role } from "./models/Role";
import { User, ConnectedAccount, PublicUser, Relationship, UserSettings } from "./models/User";
import { Activity, ActivityType, Presence } from "./models/Activity";
import {
ApplicationCommand,
ApplicationCommandInteractionData,
ApplicationCommandInteractionDataOption,
ApplicationCommandOption,
ApplicationCommandOptionChoice,
ApplicationCommandOptionType,
} from "./models/Application";
import { ApplicationCommandPayload, EVENT, Event, MessagePayload } from "./models/Event";
import {
Interaction,
InteractionApplicationCommandCallbackData,
InteractionResponseType,
InteractionType,
} from "./models/Interaction";
import {
AllowedMentions,
Attachment,
Embed,
EmbedImage,
Message,
MessageType,
PartialEmoji,
Reaction,
} from "./models/Message";
import { ClientStatus, Status } from "./models/Status";
import { VoiceState } from "./models/VoiceState";
import { trimSpecial } from "./util/String";
import { BitField } from "./util/BitField";
import { Intents } from "./util/Intents";
import { MessageFlags } from "./util/MessageFlags";
import { Permissions } from "./util/Permissions";
import { Snowflake } from "./util/Snowflake";
import { UserFlags } from "./util/UserFlags";
export {
trimSpecial,
checkToken,
Config,
Constants,
db,
Activity,
ActivityType,
Presence,
BitField,
DefaultOptions,
Permissions,
VoiceState,
Snowflake,
Intents,
Channel,
ChannelType,
DMChannel,
GuildChannel,
ReadState,
TextBasedChannel,
TextChannel,
VoiceChannel,
Emoji,
Guild,
Invite,
Member,
ClientStatus,
Status,
MuteConfig,
PublicMember,
UserGuildSettings,
Role,
User,
UserFlags,
UserSettings,
ConnectedAccount,
PublicUser,
Relationship,
EVENT,
Event,
MessageType,
Message,
MessageFlags,
MessagePayload,
AllowedMentions,
Attachment,
Embed,
EmbedImage,
PartialEmoji,
Reaction,
Interaction,
InteractionApplicationCommandCallbackData,
InteractionResponseType,
InteractionType,
ApplicationCommand,
ApplicationCommandPayload,
ApplicationCommandInteractionData,
ApplicationCommandInteractionDataOption,
ApplicationCommandOption,
ApplicationCommandOptionChoice,
ApplicationCommandOptionType,
};
export { Config, db, DefaultOptions };

View File

@ -1,10 +1,9 @@
import { ConnectedAccount, User, UserSettings } from "./User";
import { DMChannel, Channel } from "./Channel";
import { Guild } from "./Guild";
import { Member, PublicMember, UserGuildSettings } from "./Member";
import { PublicMember, UserGuildSettings } from "./Member";
import { Emoji } from "./Emoji";
import { ClientStatus, Status } from "./Status";
import { Activity, Presence } from "./Activity";
import { Presence } from "./Activity";
import { Role } from "./Role";
import { Invite } from "./Invite";
import { Message, PartialEmoji } from "./Message";