disgroove 2.2.7-dev.2c78f2c → 2.2.7-dev.4784073
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/dist/lib/Client.d.ts +40 -8
- package/dist/lib/Client.js +98 -2
- package/dist/lib/constants.d.ts +5 -0
- package/dist/lib/constants.js +7 -1
- package/dist/lib/rest/Endpoints.d.ts +4 -0
- package/dist/lib/rest/Endpoints.js +10 -1
- package/dist/lib/transformers/Components.d.ts +2 -2
- package/dist/lib/transformers/Components.js +54 -24
- package/dist/lib/transformers/Interactions.js +110 -12
- package/dist/lib/transformers/Lobbies.d.ts +7 -0
- package/dist/lib/transformers/Lobbies.js +38 -0
- package/dist/lib/transformers/Messages.d.ts +3 -3
- package/dist/lib/transformers/Messages.js +0 -28
- package/dist/lib/transformers/Roles.js +2 -2
- package/dist/lib/transformers/index.d.ts +2 -1
- package/dist/lib/transformers/index.js +2 -1
- package/dist/lib/types/guild.d.ts +7 -5
- package/dist/lib/types/interaction.d.ts +17 -5
- package/dist/lib/types/lobby.d.ts +29 -0
- package/dist/lib/types/lobby.js +2 -0
- package/dist/lib/types/message-components.d.ts +93 -2
- package/dist/lib/types/message.d.ts +3 -3
- package/dist/lib/types/role.d.ts +2 -2
- package/dist/lib/utils/formatters.d.ts +1 -1
- package/dist/lib/utils/formatters.js +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@ import type { Channel, RawChannel, RawRoleSubscriptionData, RoleSubscriptionData
|
|
|
4
4
|
import type { snowflake, timestamp } from "./common";
|
|
5
5
|
import type { Emoji, RawEmoji } from "./emoji";
|
|
6
6
|
import type { MessageInteraction, RawMessageInteraction, RawResolvedData, ResolvedData } from "./interaction";
|
|
7
|
-
import type { ActionRow,
|
|
7
|
+
import type { ActionRow, Container, File, MediaGallery, RawActionRow, RawContainer, RawFile, RawMediaGallery, RawSection, RawSeparator, RawTextDisplay, Section, Separator, TextDisplay } from "./message-components";
|
|
8
8
|
import type { Poll, RawPoll } from "./poll";
|
|
9
9
|
import type { RawStickerItem, RawSticker, Sticker, StickerItem } from "./sticker";
|
|
10
10
|
import type { RawUser, User } from "./user";
|
|
@@ -38,7 +38,7 @@ export interface RawMessage {
|
|
|
38
38
|
interaction_metadata?: RawMessageInteractionMetadata;
|
|
39
39
|
interaction?: RawMessageInteraction;
|
|
40
40
|
thread?: RawChannel;
|
|
41
|
-
components?: Array<RawActionRow |
|
|
41
|
+
components?: Array<RawActionRow | RawSection | RawTextDisplay | RawMediaGallery | RawFile | RawSeparator | RawContainer>;
|
|
42
42
|
sticker_items?: Array<RawStickerItem>;
|
|
43
43
|
stickers?: Array<RawSticker>;
|
|
44
44
|
position?: number;
|
|
@@ -230,7 +230,7 @@ export interface Message {
|
|
|
230
230
|
interactionMetadata?: MessageInteractionMetadata;
|
|
231
231
|
interaction?: MessageInteraction;
|
|
232
232
|
thread?: Channel;
|
|
233
|
-
components?: Array<ActionRow |
|
|
233
|
+
components?: Array<ActionRow | Section | TextDisplay | MediaGallery | File | Separator | Container>;
|
|
234
234
|
stickerItems?: Array<StickerItem>;
|
|
235
235
|
stickers?: Array<Sticker>;
|
|
236
236
|
position?: number;
|
package/dist/lib/types/role.d.ts
CHANGED
|
@@ -29,7 +29,7 @@ export interface RawRoleTags {
|
|
|
29
29
|
export interface RawRoleColors {
|
|
30
30
|
primary_color: number;
|
|
31
31
|
secondary_color: number | null;
|
|
32
|
-
|
|
32
|
+
tertiary_color: number | null;
|
|
33
33
|
}
|
|
34
34
|
export interface Role {
|
|
35
35
|
id: snowflake;
|
|
@@ -57,5 +57,5 @@ export interface RoleTags {
|
|
|
57
57
|
export interface RoleColors {
|
|
58
58
|
primaryColor: number;
|
|
59
59
|
secondaryColor: number | null;
|
|
60
|
-
|
|
60
|
+
tertiaryColor: number | null;
|
|
61
61
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GuildNavigationTypes, TimestampStyles } from "../constants";
|
|
1
|
+
import { GuildNavigationTypes, type TimestampStyles } from "../constants";
|
|
2
2
|
import type { snowflake } from "../types/common";
|
|
3
3
|
/** https://discord.com/developers/docs/reference#message-formatting-formats */
|
|
4
4
|
export declare function userMention(userID: snowflake): string;
|
|
@@ -52,6 +52,6 @@ function email(username, domain) {
|
|
|
52
52
|
exports.email = email;
|
|
53
53
|
/** https://discord.com/developers/docs/reference#message-formatting-formats */
|
|
54
54
|
function phoneNumber(number) {
|
|
55
|
-
return `<+${
|
|
55
|
+
return `<+${number}>`;
|
|
56
56
|
}
|
|
57
57
|
exports.phoneNumber = phoneNumber;
|
package/dist/package.json
CHANGED