seyfert 2.1.1-dev-11635725680.0 → 2.1.1-dev-11638605397.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/common/it/utils.js
CHANGED
|
@@ -258,12 +258,10 @@ exports.ReplaceRegex = {
|
|
|
258
258
|
},
|
|
259
259
|
};
|
|
260
260
|
async function magicImport(path) {
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
return eval('((path) => import(`file:///${path}?update=${Date.now()}`))')(path.split('\\').join('\\\\'));
|
|
266
|
-
}
|
|
261
|
+
//@ts-expect-error
|
|
262
|
+
if (typeof require === 'undefined' || globalThis.Deno)
|
|
263
|
+
return new Function('return ((path) => import(`file:///${path}?update=${Date.now()}`))')()(path.split('\\').join('\\\\'));
|
|
264
|
+
return require(path);
|
|
267
265
|
}
|
|
268
266
|
function fakePromise(value) {
|
|
269
267
|
if (value instanceof Promise)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ApplicationIntegrationType, InteractionContextType } from '..';
|
|
2
|
-
import type { ChannelType, Snowflake } from '../..';
|
|
2
|
+
import type { ChannelType, Permissions, Snowflake } from '../..';
|
|
3
3
|
import type { LocaleString } from '../../rest';
|
|
4
4
|
import type { APIAttachment, APIChannel, APIMessage, APIPartialChannel, APIThreadChannel, ThreadChannelType } from '../channel';
|
|
5
5
|
import type { APIGuildMember } from '../guild';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Types extracted from https://discord.com/developers/docs/resources/application
|
|
3
3
|
*/
|
|
4
4
|
import type { LocalizationMap } from '.';
|
|
5
|
-
import type { Snowflake } from '..';
|
|
5
|
+
import type { Permissions, Snowflake } from '..';
|
|
6
6
|
import type { APIPartialGuild } from './guild';
|
|
7
7
|
import type { ApplicationIntegrationType } from './interactions';
|
|
8
8
|
import type { OAuth2Scopes } from './oauth2';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Snowflake } from '..';
|
|
1
|
+
import type { Permissions, Snowflake } from '..';
|
|
2
2
|
import type { APIBan, APIChannel, APIDMChannel, APIExtendedInvite, APIGroupDMChannel, APIGuild, APIGuildIntegration, APIGuildMember, APIGuildMembershipScreening, APIGuildOnboarding, APIGuildOnboardingPrompt, APIGuildOnboardingPromptOption, APIGuildPreview, APIGuildWelcomeScreen, APIGuildWidget, APIGuildWidgetSettings, APIRole, APIThreadList, APIVoiceRegion, GuildDefaultMessageNotifications, GuildExplicitContentFilter, GuildFeature, GuildMFALevel, GuildSystemChannelFlags, GuildVerificationLevel, GuildWidgetStyle } from '../payloads';
|
|
3
3
|
import type { AddUndefinedToPossiblyUndefinedPropertiesOfInterface, DistributiveOmit, DistributivePick, Nullable, StrictPartial, StrictRequired } from '../utils';
|
|
4
4
|
import type { RESTPutAPIChannelPermissionJSONBody } from './channel';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Snowflake } from '..';
|
|
1
|
+
import type { Permissions, Snowflake } from '..';
|
|
2
2
|
import type { APIApplication, APIGuild, APIUser, APIWebhook, OAuth2Scopes } from '../payloads';
|
|
3
3
|
/**
|
|
4
4
|
* https://discord.com/developers/docs/topics/oauth2#get-current-bot-application-information
|
package/lib/types/rest/user.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Snowflake } from '..';
|
|
1
|
+
import type { Permissions, Snowflake } from '..';
|
|
2
2
|
import type { APIApplicationRoleConnection, APIChannel, APIConnection, APIGuildMember, APIUser, GuildFeature } from '../payloads';
|
|
3
3
|
/**
|
|
4
4
|
* https://discord.com/developers/docs/resources/user#get-current-user
|