oceanic.js 1.10.1-dev.97cef9c → 1.10.1-dev.9b37972

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.
Files changed (204) hide show
  1. package/dist/package.json +5 -5
  2. package/esm.mjs +2 -0
  3. package/package.json +5 -5
  4. package/dist/lib/Client.d.ts +0 -91
  5. package/dist/lib/Client.js +0 -254
  6. package/dist/lib/Constants.d.ts +0 -1121
  7. package/dist/lib/Constants.js +0 -1401
  8. package/dist/lib/gateway/Shard.d.ts +0 -77
  9. package/dist/lib/gateway/Shard.js +0 -1582
  10. package/dist/lib/gateway/ShardManager.d.ts +0 -26
  11. package/dist/lib/gateway/ShardManager.js +0 -304
  12. package/dist/lib/index.d.ts +0 -83
  13. package/dist/lib/index.js +0 -166
  14. package/dist/lib/rest/Bucket.d.ts +0 -33
  15. package/dist/lib/rest/Bucket.js +0 -78
  16. package/dist/lib/rest/DiscordHTTPError.d.ts +0 -16
  17. package/dist/lib/rest/DiscordHTTPError.js +0 -65
  18. package/dist/lib/rest/DiscordRESTError.d.ts +0 -19
  19. package/dist/lib/rest/DiscordRESTError.js +0 -89
  20. package/dist/lib/rest/OAuthHelper.d.ts +0 -60
  21. package/dist/lib/rest/OAuthHelper.js +0 -180
  22. package/dist/lib/rest/RESTManager.d.ts +0 -42
  23. package/dist/lib/rest/RESTManager.js +0 -82
  24. package/dist/lib/rest/RequestHandler.d.ts +0 -28
  25. package/dist/lib/rest/RequestHandler.js +0 -313
  26. package/dist/lib/rest/SequentialBucket.d.ts +0 -25
  27. package/dist/lib/rest/SequentialBucket.js +0 -76
  28. package/dist/lib/routes/Applications.d.ts +0 -171
  29. package/dist/lib/routes/Applications.js +0 -447
  30. package/dist/lib/routes/Channels.d.ts +0 -391
  31. package/dist/lib/routes/Channels.js +0 -1107
  32. package/dist/lib/routes/Guilds.d.ts +0 -606
  33. package/dist/lib/routes/Guilds.js +0 -1669
  34. package/dist/lib/routes/Interactions.d.ts +0 -74
  35. package/dist/lib/routes/Interactions.js +0 -141
  36. package/dist/lib/routes/Miscellaneous.d.ts +0 -25
  37. package/dist/lib/routes/Miscellaneous.js +0 -54
  38. package/dist/lib/routes/OAuth.d.ts +0 -105
  39. package/dist/lib/routes/OAuth.js +0 -309
  40. package/dist/lib/routes/Users.d.ts +0 -32
  41. package/dist/lib/routes/Users.js +0 -59
  42. package/dist/lib/routes/Webhooks.d.ts +0 -128
  43. package/dist/lib/routes/Webhooks.js +0 -264
  44. package/dist/lib/structures/AnnouncementChannel.d.ts +0 -36
  45. package/dist/lib/structures/AnnouncementChannel.js +0 -47
  46. package/dist/lib/structures/AnnouncementThreadChannel.d.ts +0 -18
  47. package/dist/lib/structures/AnnouncementThreadChannel.js +0 -27
  48. package/dist/lib/structures/Application.d.ts +0 -68
  49. package/dist/lib/structures/Application.js +0 -178
  50. package/dist/lib/structures/ApplicationCommand.d.ts +0 -74
  51. package/dist/lib/structures/ApplicationCommand.js +0 -141
  52. package/dist/lib/structures/Attachment.d.ts +0 -34
  53. package/dist/lib/structures/Attachment.js +0 -64
  54. package/dist/lib/structures/AuditLogEntry.d.ts +0 -25
  55. package/dist/lib/structures/AuditLogEntry.js +0 -53
  56. package/dist/lib/structures/AutoModerationRule.d.ts +0 -49
  57. package/dist/lib/structures/AutoModerationRule.js +0 -139
  58. package/dist/lib/structures/AutocompleteInteraction.d.ts +0 -62
  59. package/dist/lib/structures/AutocompleteInteraction.js +0 -115
  60. package/dist/lib/structures/Base.d.ts +0 -20
  61. package/dist/lib/structures/Base.js +0 -58
  62. package/dist/lib/structures/BaseEntitlement.d.ts +0 -19
  63. package/dist/lib/structures/BaseEntitlement.js +0 -44
  64. package/dist/lib/structures/CategoryChannel.d.ts +0 -41
  65. package/dist/lib/structures/CategoryChannel.js +0 -105
  66. package/dist/lib/structures/Channel.d.ts +0 -20
  67. package/dist/lib/structures/Channel.js +0 -91
  68. package/dist/lib/structures/ClientApplication.d.ts +0 -153
  69. package/dist/lib/structures/ClientApplication.js +0 -220
  70. package/dist/lib/structures/CommandInteraction.d.ts +0 -127
  71. package/dist/lib/structures/CommandInteraction.js +0 -297
  72. package/dist/lib/structures/ComponentInteraction.d.ts +0 -137
  73. package/dist/lib/structures/ComponentInteraction.js +0 -311
  74. package/dist/lib/structures/Entitlement.d.ts +0 -12
  75. package/dist/lib/structures/Entitlement.js +0 -26
  76. package/dist/lib/structures/ExtendedUser.d.ts +0 -26
  77. package/dist/lib/structures/ExtendedUser.js +0 -57
  78. package/dist/lib/structures/ForumChannel.d.ts +0 -11
  79. package/dist/lib/structures/ForumChannel.js +0 -19
  80. package/dist/lib/structures/GroupChannel.d.ts +0 -62
  81. package/dist/lib/structures/GroupChannel.js +0 -133
  82. package/dist/lib/structures/Guild.d.ts +0 -654
  83. package/dist/lib/structures/Guild.js +0 -1319
  84. package/dist/lib/structures/GuildChannel.d.ts +0 -34
  85. package/dist/lib/structures/GuildChannel.js +0 -75
  86. package/dist/lib/structures/GuildPreview.d.ts +0 -50
  87. package/dist/lib/structures/GuildPreview.js +0 -119
  88. package/dist/lib/structures/GuildScheduledEvent.d.ts +0 -60
  89. package/dist/lib/structures/GuildScheduledEvent.js +0 -154
  90. package/dist/lib/structures/GuildTemplate.d.ts +0 -55
  91. package/dist/lib/structures/GuildTemplate.js +0 -126
  92. package/dist/lib/structures/Integration.d.ts +0 -54
  93. package/dist/lib/structures/Integration.js +0 -156
  94. package/dist/lib/structures/Interaction.d.ts +0 -40
  95. package/dist/lib/structures/Interaction.js +0 -91
  96. package/dist/lib/structures/InteractionResolvedChannel.d.ts +0 -28
  97. package/dist/lib/structures/InteractionResolvedChannel.js +0 -45
  98. package/dist/lib/structures/Invite.d.ts +0 -64
  99. package/dist/lib/structures/Invite.js +0 -193
  100. package/dist/lib/structures/InviteGuild.d.ts +0 -52
  101. package/dist/lib/structures/InviteGuild.js +0 -88
  102. package/dist/lib/structures/MediaChannel.d.ts +0 -11
  103. package/dist/lib/structures/MediaChannel.js +0 -19
  104. package/dist/lib/structures/Member.d.ts +0 -122
  105. package/dist/lib/structures/Member.js +0 -255
  106. package/dist/lib/structures/Message.d.ts +0 -183
  107. package/dist/lib/structures/Message.js +0 -455
  108. package/dist/lib/structures/ModalSubmitInteraction.d.ts +0 -128
  109. package/dist/lib/structures/ModalSubmitInteraction.js +0 -240
  110. package/dist/lib/structures/OAuthApplication.d.ts +0 -79
  111. package/dist/lib/structures/OAuthApplication.js +0 -210
  112. package/dist/lib/structures/OAuthGuild.d.ts +0 -35
  113. package/dist/lib/structures/OAuthGuild.js +0 -61
  114. package/dist/lib/structures/PartialApplication.d.ts +0 -30
  115. package/dist/lib/structures/PartialApplication.js +0 -67
  116. package/dist/lib/structures/Permission.d.ts +0 -21
  117. package/dist/lib/structures/Permission.js +0 -68
  118. package/dist/lib/structures/PermissionOverwrite.d.ts +0 -26
  119. package/dist/lib/structures/PermissionOverwrite.js +0 -49
  120. package/dist/lib/structures/PingInteraction.d.ts +0 -16
  121. package/dist/lib/structures/PingInteraction.js +0 -26
  122. package/dist/lib/structures/PrivateChannel.d.ts +0 -90
  123. package/dist/lib/structures/PrivateChannel.js +0 -131
  124. package/dist/lib/structures/PrivateThreadChannel.d.ts +0 -18
  125. package/dist/lib/structures/PrivateThreadChannel.js +0 -27
  126. package/dist/lib/structures/PublicThreadChannel.d.ts +0 -21
  127. package/dist/lib/structures/PublicThreadChannel.js +0 -37
  128. package/dist/lib/structures/Role.d.ts +0 -50
  129. package/dist/lib/structures/Role.js +0 -131
  130. package/dist/lib/structures/SKU.d.ts +0 -32
  131. package/dist/lib/structures/SKU.js +0 -53
  132. package/dist/lib/structures/StageChannel.d.ts +0 -33
  133. package/dist/lib/structures/StageChannel.js +0 -44
  134. package/dist/lib/structures/StageInstance.d.ts +0 -36
  135. package/dist/lib/structures/StageInstance.js +0 -94
  136. package/dist/lib/structures/Team.d.ts +0 -22
  137. package/dist/lib/structures/Team.js +0 -67
  138. package/dist/lib/structures/TestEntitlement.d.ts +0 -10
  139. package/dist/lib/structures/TestEntitlement.js +0 -21
  140. package/dist/lib/structures/TextChannel.d.ts +0 -34
  141. package/dist/lib/structures/TextChannel.js +0 -46
  142. package/dist/lib/structures/TextableChannel.d.ts +0 -158
  143. package/dist/lib/structures/TextableChannel.js +0 -276
  144. package/dist/lib/structures/TextableVoiceChannel.d.ts +0 -39
  145. package/dist/lib/structures/TextableVoiceChannel.js +0 -81
  146. package/dist/lib/structures/ThreadChannel.d.ts +0 -159
  147. package/dist/lib/structures/ThreadChannel.js +0 -295
  148. package/dist/lib/structures/ThreadOnlyChannel.d.ts +0 -99
  149. package/dist/lib/structures/ThreadOnlyChannel.js +0 -233
  150. package/dist/lib/structures/ThreadableChannel.d.ts +0 -36
  151. package/dist/lib/structures/ThreadableChannel.js +0 -58
  152. package/dist/lib/structures/UnavailableGuild.d.ts +0 -11
  153. package/dist/lib/structures/UnavailableGuild.js +0 -21
  154. package/dist/lib/structures/User.d.ts +0 -82
  155. package/dist/lib/structures/User.js +0 -168
  156. package/dist/lib/structures/VoiceChannel.d.ts +0 -20
  157. package/dist/lib/structures/VoiceChannel.js +0 -35
  158. package/dist/lib/structures/VoiceState.d.ts +0 -51
  159. package/dist/lib/structures/VoiceState.js +0 -140
  160. package/dist/lib/structures/Webhook.d.ts +0 -129
  161. package/dist/lib/structures/Webhook.js +0 -206
  162. package/dist/lib/types/applications.d.ts +0 -448
  163. package/dist/lib/types/audit-log.d.ts +0 -121
  164. package/dist/lib/types/auto-moderation.d.ts +0 -99
  165. package/dist/lib/types/channels.d.ts +0 -1150
  166. package/dist/lib/types/client.d.ts +0 -228
  167. package/dist/lib/types/events.d.ts +0 -260
  168. package/dist/lib/types/gateway-raw.d.ts +0 -567
  169. package/dist/lib/types/gateway.d.ts +0 -338
  170. package/dist/lib/types/guild-template.d.ts +0 -33
  171. package/dist/lib/types/guilds.d.ts +0 -854
  172. package/dist/lib/types/index.d.ts +0 -18
  173. package/dist/lib/types/interactions.d.ts +0 -376
  174. package/dist/lib/types/json.d.ts +0 -709
  175. package/dist/lib/types/misc.d.ts +0 -13
  176. package/dist/lib/types/oauth.d.ts +0 -201
  177. package/dist/lib/types/request-handler.d.ts +0 -52
  178. package/dist/lib/types/scheduled-events.d.ts +0 -88
  179. package/dist/lib/types/shared.d.ts +0 -9
  180. package/dist/lib/types/users.d.ts +0 -45
  181. package/dist/lib/types/voice.d.ts +0 -45
  182. package/dist/lib/types/webhooks.d.ts +0 -73
  183. package/dist/lib/util/Collection.d.ts +0 -47
  184. package/dist/lib/util/Collection.js +0 -78
  185. package/dist/lib/util/Errors.d.ts +0 -29
  186. package/dist/lib/util/Errors.js +0 -56
  187. package/dist/lib/util/Routes.d.ts +0 -124
  188. package/dist/lib/util/Routes.js +0 -243
  189. package/dist/lib/util/SimpleCollection.d.ts +0 -12
  190. package/dist/lib/util/SimpleCollection.js +0 -81
  191. package/dist/lib/util/TypedCollection.d.ts +0 -24
  192. package/dist/lib/util/TypedCollection.js +0 -76
  193. package/dist/lib/util/TypedEmitter.d.ts +0 -19
  194. package/dist/lib/util/TypedEmitter.js +0 -19
  195. package/dist/lib/util/Util.d.ts +0 -52
  196. package/dist/lib/util/Util.js +0 -469
  197. package/dist/lib/util/interactions/InteractionOptionsWrapper.d.ts +0 -170
  198. package/dist/lib/util/interactions/InteractionOptionsWrapper.js +0 -213
  199. package/dist/lib/util/interactions/MessageInteractionResponse.d.ts +0 -24
  200. package/dist/lib/util/interactions/MessageInteractionResponse.js +0 -28
  201. package/dist/lib/util/interactions/ModalSubmitInteractionComponentsWrapper.d.ts +0 -24
  202. package/dist/lib/util/interactions/ModalSubmitInteractionComponentsWrapper.js +0 -34
  203. package/dist/lib/util/interactions/SelectMenuValuesWrapper.d.ts +0 -60
  204. package/dist/lib/util/interactions/SelectMenuValuesWrapper.js +0 -124
@@ -1,201 +0,0 @@
1
- /** @module Types/OAuth */
2
- import type { RawUser } from "./users";
3
- import type { OAuthWebhook } from "./webhooks";
4
- import type { RawIntegration } from "./guilds";
5
- import type { LocaleMap, RawPartialApplication } from "./applications";
6
- import type { ConnectionService, PermissionName, RoleConnectionMetadataTypes, ConnectionVisibilityTypes } from "../Constants";
7
- import type PartialApplication from "../structures/PartialApplication";
8
- import type User from "../structures/User";
9
- import type Webhook from "../structures/Webhook";
10
- import type Integration from "../structures/Integration";
11
-
12
-
13
- export interface InstallParams {
14
- permissions: Array<PermissionName>;
15
- scopes: Array<string>;
16
- }
17
-
18
- export interface RawAuthorizationInformation {
19
- application: RawPartialApplication;
20
- expires: string;
21
- scopes: Array<string>;
22
- user: RawUser;
23
- }
24
-
25
- export interface AuthorizationInformation {
26
- application: PartialApplication;
27
- expires: Date;
28
- scopes: Array<string>;
29
- user: User;
30
- }
31
-
32
- export interface RawConnection {
33
- friend_sync: boolean;
34
- id: string;
35
- integrations?: Array<RawIntegration>;
36
- name: string;
37
- revoked?: boolean;
38
- show_activity: boolean;
39
- two_way_link: boolean;
40
- type: ConnectionService;
41
- verified: boolean;
42
- visibility: ConnectionVisibilityTypes;
43
- }
44
-
45
- export interface Connection {
46
- friendSync: boolean;
47
- id: string;
48
- integrations?: Array<Integration>;
49
- name: string;
50
- revoked?: boolean;
51
- showActivity: boolean;
52
- twoWayLink: boolean;
53
- type: ConnectionService;
54
- verified: boolean;
55
- visibility: ConnectionVisibilityTypes;
56
- }
57
-
58
- export interface OAuthURLOptions {
59
- /** The client id of the application. */
60
- clientID: string;
61
- /** If the guild dropdown should be disabled. */
62
- disableGuildSelect?: boolean;
63
- /** The id of the guild to preselect. */
64
- guildID?: string;
65
- /** The permissions to request. */
66
- permissions?: string;
67
- /** `consent` to show the prompt, `none` to not show the prompt if the user has already authorized previously. */
68
- prompt?: "consent" | "none";
69
- /** The redirect uri of the application. */
70
- redirectURI?: string;
71
- /** The response type when authorized. `code` will result in query parameters that need to be exchanged with Discord for a token. `token` will result in fragment parameters that are not accessible server side, but this will be an immediate token. */
72
- responseType?: "code" | "token";
73
- /** The [scopes](https://discord.com/developers/docs/topics/oauth2#shared-resources-oauth2-scopes) to request. */
74
- scopes: Array<string>;
75
- /** The state to send. */
76
- state?: string;
77
- }
78
-
79
- export interface ExchangeCodeOptions {
80
- /** The id of the client the authorization was performed with. */
81
- clientID: string;
82
- /** The secret of the client the authorization was performed with. */
83
- clientSecret: string;
84
- /** The code from the authorization. */
85
- code: string;
86
- /** The redirect uri used in the authorization. */
87
- redirectURI: string;
88
- }
89
-
90
- export interface RawExchangeCodeResponse {
91
- access_token: string;
92
- expires_in: number;
93
- refresh_token: string;
94
- scope: string;
95
- token_type: "Bearer";
96
- webhook?: OAuthWebhook;
97
- }
98
-
99
- export interface ExchangeCodeResponse {
100
- accessToken: string;
101
- expiresIn: number;
102
- refreshToken: string;
103
- scopes: Array<string>;
104
- tokenType: "Bearer";
105
- webhook: Webhook | null;
106
- }
107
-
108
- export interface RefreshTokenOptions {
109
- /** The id of the client the authorization was performed with. */
110
- clientID: string;
111
- /** The secret of the client the authorization was performed with. */
112
- clientSecret: string;
113
- /** The refresh token from when the code was exchanged. */
114
- refreshToken: string;
115
- }
116
-
117
- export interface RawRefreshTokenResponse extends Omit<RawExchangeCodeResponse, "webhook"> {}
118
- export interface RefreshTokenResponse extends Omit<ExchangeCodeResponse, "webhook"> {}
119
-
120
- export interface ClientCredentialsTokenOptions {
121
- /** The id of the client to perform the authorization with. This can be omitted if the global authorization is the proper (Basic base64(clientID:clientSecret)) already, or if connected to the gateway and ready. */
122
- clientID?: string;
123
- /** The secret of the client to perform the authorization with. This can be omitted if the global authorization is the proper (Basic base64(clientID:clientSecret)) already. */
124
- clientSecret?: string;
125
- /** The [scopes](https://discord.com/developers/docs/topics/oauth2#shared-resources-oauth2-scopes) to request. */
126
- scopes: Array<string>;
127
- }
128
-
129
- export interface RawClientCredentialsTokenResponse extends Omit<RawExchangeCodeResponse, "refresh_token"> {}
130
- export interface ClientCredentialsTokenResponse extends Omit<ExchangeCodeResponse, "refreshToken"> {}
131
-
132
- export interface RevokeTokenOptions {
133
- /** The id of the client the authorization was performed with. */
134
- clientID: string;
135
- /** The secret of the client the authorization was performed with. */
136
- clientSecret: string;
137
- /** The access token to revoke. */
138
- token: string;
139
- }
140
-
141
- export interface GetCurrentGuildsOptions {
142
- /** Get guilds after this id. */
143
- after?: string;
144
- /** Get guilds before this id. */
145
- before?: string;
146
- /** Max number of guilds to return (1-200). */
147
- limit?: number;
148
- /** Whether to include approximate member and presence counts. */
149
- withCounts?: boolean;
150
- }
151
-
152
- export interface UpdateRoleConnectionOptions {
153
- metadata?: Record<string, RoleConnectionMetadataOptions>;
154
- platformName?: string;
155
- platformUsername?: string;
156
- }
157
-
158
- export interface RoleConnectionMetadataOptions {
159
- description: string;
160
- descriptionLocalizations?: LocaleMap;
161
- key: string;
162
- name: string;
163
- nameLocalizations?: LocaleMap;
164
- type: RoleConnectionMetadataTypes;
165
- }
166
-
167
- export interface RawRoleConnection {
168
- metadata: Record<string, RawRoleConnectionMetadata>;
169
- platform_name: string | null;
170
- platform_username: string | null;
171
- }
172
-
173
- export interface RawRoleConnectionMetadata {
174
- description: string;
175
- description_localizations?: LocaleMap;
176
- key: string;
177
- name: string;
178
- name_localizations?: LocaleMap;
179
- type: RoleConnectionMetadataTypes;
180
- }
181
-
182
- export interface RoleConnection {
183
- metadata: Record<string, RoleConnectionMetadata>;
184
- platformName: string | null;
185
- platformUsername: string | null;
186
- }
187
-
188
- export interface UpdateUserApplicationRoleConnectionOptions {
189
- metadata: Record<string, string>;
190
- platformName: string | null;
191
- platformUsername: string | null;
192
- }
193
-
194
- export interface RoleConnectionMetadata {
195
- description: string;
196
- descriptionLocalizations?: LocaleMap;
197
- key: string;
198
- name: string;
199
- nameLocalizations?: LocaleMap;
200
- type: RoleConnectionMetadataTypes;
201
- }
@@ -1,52 +0,0 @@
1
- /** @module Types/RequestHandler */
2
- import type { RESTOptions } from "./client";
3
- import type { RESTMethod } from "../Constants";
4
-
5
- // internal use
6
- export interface RequestHandlerInstanceOptions extends Required<Omit<RESTOptions, "agent">>, Pick<RESTOptions, "agent"> {}
7
-
8
- export interface RequestOptions {
9
- auth?: boolean | string;
10
- files?: Array<File>;
11
- form?: FormData;
12
- headers?: Record<string, string>;
13
- json?: unknown;
14
- method: RESTMethod;
15
- path: string;
16
- priority?: boolean;
17
- query?: URLSearchParams;
18
- reason?: string;
19
- route?: string;
20
- }
21
-
22
- export interface File {
23
- /** the contents of the file */
24
- contents: Buffer;
25
- /** The index to use when uploading the file. You can use this to reference this specific file from `attachments`. */
26
- index?: number;
27
- /** the name of the file */
28
- name: string;
29
- }
30
-
31
- export interface RawRequest {
32
- /** the method of the request */
33
- method: RESTMethod;
34
- /** the path of the request */
35
- path: string;
36
- /** the body sent with the request */
37
- requestBody: string | FormData | undefined;
38
- /** the body we received */
39
- responseBody: Buffer | string | Record<string, unknown> | null;
40
- /** the name of the route used in the request */
41
- route: string;
42
- /** if the request used authorization */
43
- withAuth: boolean;
44
- }
45
-
46
- export interface LatencyRef {
47
- lastTimeOffsetCheck: number;
48
- latency: number;
49
- raw: Array<number>;
50
- timeOffsets: Array<number>;
51
- timeoffset: number;
52
- }
@@ -1,88 +0,0 @@
1
- /** @module Types/ScheduledEvents */
2
- import type { RawUser } from "./users";
3
- import type { RawMember } from "./guilds";
4
- import type { GuildScheduledEventEntityTypes, GuildScheduledEventPrivacyLevels, GuildScheduledEventStatuses } from "../Constants";
5
- import type Member from "../structures/Member";
6
- import type User from "../structures/User";
7
- import type GuildScheduledEvent from "../structures/GuildScheduledEvent";
8
-
9
- export interface RawScheduledEvent {
10
- channel_id: string | null;
11
- creator?: RawUser;
12
- creator_id?: string | null;
13
- description?: string | null;
14
- entity_id: string | null;
15
- entity_metadata: ScheduledEventEntityMetadata | null;
16
- entity_type: GuildScheduledEventEntityTypes;
17
- guild_id: string;
18
- id: string;
19
- image?: string | null;
20
- name: string;
21
- privacy_level: GuildScheduledEventPrivacyLevels;
22
- scheduled_end_time: string | null;
23
- scheduled_start_time: string;
24
- status: GuildScheduledEventStatuses;
25
- user_count?: number;
26
- }
27
-
28
- export interface ScheduledEventEntityMetadata {
29
- location?: string;
30
- }
31
-
32
- export interface CreateScheduledEventOptions {
33
- /** The ID of the stage channel the event is taking place in. Optional if `entityType` is `EXTERNAL`. */
34
- channelID?: string;
35
- /** The description of the event. */
36
- description?: string;
37
- /** The metadata for the entity. */
38
- entityMetadata?: {
39
- /** The location of the event. Required if `entityType` is `EXTERNAL`. */
40
- location?: string;
41
- };
42
- /** The type of the event. */
43
- entityType: GuildScheduledEventEntityTypes;
44
- /** The cover image of the event (buffer, or full data url). */
45
- image?: Buffer | string;
46
- /** The name of the scheduled event. */
47
- name: string;
48
- /** The privacy level of the event. */
49
- privacyLevel: GuildScheduledEventPrivacyLevels;
50
- /** The reason for creating the scheduled event. */
51
- reason?: string;
52
- /** The time the event ends. ISO8601 Timestamp. Required if `entityType` is `EXTERNAL`. */
53
- scheduledEndTime?: string;
54
- /** The time the event starts. ISO8601 Timestamp. */
55
- scheduledStartTime: string;
56
- }
57
-
58
-
59
- export interface EditScheduledEventOptions extends Omit<Partial<CreateScheduledEventOptions>, "channelID"> {
60
- /** The ID of the stage channel the event is taking place in. Required to be `null` if changing `entityType` to `EXTERNAL`. */
61
- channelID?: string | null;
62
- /** The status of the event. */
63
- status?: GuildScheduledEventStatuses;
64
- }
65
-
66
- export interface GetScheduledEventUsersOptions {
67
- /** The ID of the entry to get users after. */
68
- after?: string;
69
- /** The ID of the entry to get users before. */
70
- before?: string;
71
- /** The maximum number of users to get. */
72
- limit?: number;
73
- /** If the member object should be included. */
74
- withMember?: boolean;
75
- }
76
-
77
- export interface RawScheduledEventUser {
78
- guild_scheduled_event_id: string;
79
- member?: RawMember;
80
- user: RawUser;
81
- }
82
-
83
- export interface ScheduledEventUser {
84
- guildScheduledEvent?: GuildScheduledEvent;
85
- guildScheduledEventID: string;
86
- member?: Member;
87
- user: User;
88
- }
@@ -1,9 +0,0 @@
1
- /** @module Types/Shared */
2
- export interface Uncached {
3
- id: string;
4
- }
5
-
6
- type AllKeys<T> = T extends unknown ? keyof T : never;
7
- type Id<T> = T extends infer U ? { [K in keyof U]: U[K] } : never;
8
- type _ExclusifyUnion<T, K extends PropertyKey> = T extends unknown ? Id<T & Partial<Record<Exclude<K, keyof T>, never>>> : never;
9
- type ExclusifyUnion<T> = _ExclusifyUnion<T, AllKeys<T>>;
@@ -1,45 +0,0 @@
1
- /** @module Types/Users */
2
- import type { RawMember } from "./guilds";
3
- import type { PremiumTypes } from "../Constants";
4
-
5
- // avatar_decoration, (self) bio
6
- export interface RESTUser {
7
- accent_color?: number | null;
8
- avatar: string | null;
9
- avatar_decoration?: string | null;
10
- banner?: string | null;
11
- bot?: boolean;
12
- discriminator: string;
13
- email?: string | null;
14
- flags?: number;
15
- global_name: string | null;
16
- id: string;
17
- locale?: string;
18
- member?: RawMember;
19
- mfa_enabled?: boolean;
20
- premium_type?: PremiumTypes;
21
- public_flags?: number;
22
- system?: boolean;
23
- username: string;
24
- verified?: boolean;
25
- }
26
- export interface RawUser extends Pick<RESTUser, "id" | "username" | "discriminator" | "avatar" | "avatar_decoration" | "bot" | "system" | "banner" | "accent_color">, Required<Pick<RESTUser, "public_flags" | "global_name">> {}
27
- export interface RawUserWithMember extends RawUser, Pick<RESTUser, "member"> {}
28
- export interface RawOAuthUser extends Pick<RESTUser, "id" | "username" | "discriminator" | "avatar" | "avatar_decoration" | "bot" | "system" | "global_name">, Required<Pick<RESTUser, "banner" | "accent_color" | "locale" | "mfa_enabled" | "email" | "verified" | "flags" | "public_flags">> {}
29
- export interface RawExtendedUser extends Pick<RawOAuthUser, "avatar" | "avatar_decoration" | "bot" | "discriminator" | "email" | "flags" | "id" | "mfa_enabled" | "username" | "verified" | "global_name"> {}
30
-
31
- export interface EditSelfUserOptions {
32
- /** The new avatar (buffer, or full data url). `null` to reset. */
33
- avatar?: Buffer | string | null;
34
- /** The new banner (buffer, or full data url). `null` to reset. */
35
- banner?: Buffer | string | null;
36
- /** The new username. */
37
- username?: string;
38
- }
39
-
40
- export interface CreateGroupChannelOptions {
41
- /** An array of access tokens with the `gdm.join` scope. */
42
- accessTokens: Array<string>;
43
- /** A dictionary of ids to nicknames, looks unused. */
44
- nicks?: Record<string, string>;
45
- }
@@ -1,45 +0,0 @@
1
- /** @module Types/Voice */
2
- import type { RawMember } from "./guilds";
3
-
4
- export interface RawVoiceState {
5
- channel_id: string | null;
6
- deaf: boolean;
7
- guild_id?: string;
8
- member?: RawMember;
9
- mute: boolean;
10
- request_to_speak_timestamp: string | null;
11
- self_deaf: boolean;
12
- self_mute: boolean;
13
- self_stream?: boolean;
14
- self_video: boolean;
15
- session_id: string;
16
- suppress: boolean;
17
- user_id: string;
18
- }
19
-
20
- export interface VoiceRegion {
21
- custom: boolean;
22
- deprecated: boolean;
23
- id: string;
24
- name: string;
25
- optimal: boolean;
26
- }
27
-
28
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
29
- // @ts-ignore
30
- import { type DiscordGatewayAdapterCreator } from "@discordjs/voice";
31
-
32
- export interface JoinVoiceChannelOptions {
33
- /** The ID of the channel to join. */
34
- channelID: string;
35
- /** Whether debug messages are enabled. Defaults to false. */
36
- debug?: boolean;
37
- /** The ID of the guild the channel to join belongs to. */
38
- guildID: string;
39
- /** Whether to join the channel deafened. Defaults to true. */
40
- selfDeaf?: boolean;
41
- /** Whether to join the channel muted. Defaults to true. */
42
- selfMute?: boolean;
43
- /** The voice adapter creator for this voice connection. Use the \<Guild\>.voiceAdapterCreator property for this. */
44
- voiceAdapterCreator: DiscordGatewayAdapterCreator;
45
- }
@@ -1,73 +0,0 @@
1
- /** @module Types/Webhooks */
2
- import type { CreateMessageOptions, RawChannel } from "./channels";
3
- import type { RawGuild } from "./guilds";
4
- import type { RawUser } from "./users";
5
- import type { WebhookTypes } from "../Constants";
6
-
7
- export interface RawWebhook {
8
- application_id: string | null;
9
- avatar: string | null;
10
- channel_id: string | null;
11
- guild_id?: string | null;
12
- id: string;
13
- name: string | null;
14
- source_channel?: Pick<RawChannel, "id" | "name">;
15
- source_guild?: Pick<RawGuild, "id" | "name" | "icon">;
16
- token?: string;
17
- type: WebhookTypes;
18
- url?: string;
19
- user?: RawUser;
20
- }
21
- export interface BasicWebhook extends Pick<RawWebhook, "type" | "id" | "name" | "avatar" | "channel_id" | "guild_id" | "application_id"> {}
22
- export interface OAuthWebhook extends Required<BasicWebhook & Pick<RawWebhook, "url" | "token">> {}
23
- export interface GuildWebhook extends BasicWebhook, Pick<RawWebhook, "user" | "token"> {}
24
- export interface ApplicationWebhook extends Pick<RawWebhook, "type" | "id" | "name" | "avatar" | "channel_id" | "guild_id" | "application_id">, Required<Pick<RawWebhook, "token">> {}
25
- export interface ChannelFollowerWebhook extends BasicWebhook, Required<Pick<RawWebhook, "source_guild" | "source_channel">>, Pick<RawWebhook, "user"> {}
26
-
27
- export interface CreateWebhookOptions {
28
- /** The avatar (buffer, or full data url). */
29
- avatar?: Buffer | string | null;
30
- /** The name of the webhook. */
31
- name: string;
32
- /** The reason for creating this webhook. */
33
- reason?: string;
34
- }
35
-
36
- export interface EditWebhookTokenOptions {
37
- /** The new avatar (buffer, or full data url). `null` to reset. */
38
- avatar?: Buffer | string | null;
39
- /** The name of the webhook. */
40
- name?: string;
41
- }
42
- export interface EditWebhookOptions extends EditWebhookTokenOptions {
43
- /** The id of the channel to move this webhook to. */
44
- channelID?: string;
45
- /** The reason for editing this webhook. */
46
- reason?: string;
47
- }
48
-
49
- export interface ExecuteWebhookOptions extends Pick<CreateMessageOptions, "content" | "tts" | "embeds" | "allowedMentions" | "components" | "attachments" | "flags" | "files"> {
50
- /** The url of an avatar to use. */
51
- avatarURL?: string;
52
- /** The id of the thread to send the message to. */
53
- threadID?: string;
54
- /** The name of the thread to create (forum channels). */
55
- threadName?: string;
56
- /** The username to use. */
57
- username?: string;
58
- /** If the created message should be returned. */
59
- wait?: boolean;
60
- }
61
- export interface ExecuteWebhookWaitOptions extends Omit<ExecuteWebhookOptions, "wait"> { wait: true; }
62
-
63
- export interface GetWebhookMessageOptions {
64
- messageID: string;
65
- threadID?: string;
66
- }
67
-
68
- export interface EditWebhookMessageOptions extends Pick<ExecuteWebhookOptions, "content" | "embeds" | "allowedMentions" | "components" | "attachments" | "threadID" | "files"> {}
69
-
70
- export interface DeleteWebhookMessageOptions {
71
- /** The id of the thread the message is in. */
72
- threadID?: string;
73
- }
@@ -1,47 +0,0 @@
1
- /** @module Collection */
2
- /** A {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map | Map} with some Array-like additions. */
3
- export default class Collection<K, V> extends Map<K, V> {
4
- /** If this collection is empty. */
5
- get empty(): boolean;
6
- /** See: {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/every | Array#every } */
7
- every<T extends V, ThisArg = Collection<K, V>>(predicate: (value: V, index: number, array: Array<V>) => value is T, thisArg?: ThisArg): this is Array<T>;
8
- every<ThisArg = Collection<K, V>>(predicate: (value: V, index: number, array: Array<V>) => unknown, thisArg?: ThisArg): boolean;
9
- /** See: {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter | Array#filter } */
10
- filter<S extends V, ThisArg = Collection<K, V>>(predicate: (this: ThisArg, value: V, index: number, array: Array<V>) => value is S, thisArg?: ThisArg): Array<S>;
11
- filter<ThisArg = Collection<K, V>>(predicate: (this: ThisArg, value: V, index: number, array: Array<V>) => unknown, thisArg?: ThisArg): Array<V>;
12
- /** See: {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/find | Array#find } */
13
- find<S extends V, ThisArg = Collection<K, V>>(predicate: (this: ThisArg, value: V, index: number, obj: Array<V>) => value is S, thisArg?: ThisArg): S | undefined;
14
- find<ThisArg = Collection<K, V>>(predicate: (this: ThisArg, value: V, index: number, obj: Array<V>) => unknown, thisArg?: ThisArg): V | undefined;
15
- /** See: {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/findIndex | Array#findIndex } */
16
- findIndex(predicate: (value: V, index: number, obj: Array<V>) => unknown, thisArg?: unknown): number;
17
- /**
18
- * Get the first element, or first X elements if a number is provided.
19
- * @param amount The amount of elements to get.
20
- */
21
- first(): V | undefined;
22
- first(amount: number): Array<V>;
23
- /**
24
- * Get the last element, or last X elements if a number is provided.
25
- * @param amount The amount of elements to get.
26
- */
27
- last(): V | undefined;
28
- last(amount: number): Array<V>;
29
- /** See: {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map | Array#map } */
30
- map<T>(predicate: (value: V, index: number, obj: Array<V>) => T, thisArg?: unknown): Array<T>;
31
- /**
32
- * Pick a random element from the collection, or undefined if the collection is empty.
33
- */
34
- random(): V | undefined;
35
- /** See: {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reduce | Array#reduce } */
36
- reduce(predicate: (previousValue: V, currentValue: V, currentIndex: number, array: Array<V>) => V): V;
37
- reduce(predicate: (previousValue: V, currentValue: V, currentIndex: number, array: Array<V>) => V, initialValue: V): V;
38
- reduce<T>(predicate: (previousValue: T, currentValue: V, currentIndex: number, array: Array<V>) => T, initialValue: T): T;
39
- /** See: {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reduceRight | Array#reduceRight } */
40
- reduceRight(predicate: (previousValue: V, currentValue: V, currentIndex: number, array: Array<V>) => V): V;
41
- reduceRight(predicate: (previousValue: V, currentValue: V, currentIndex: number, array: Array<V>) => V, initialValue: V): V;
42
- reduceRight<T>(predicate: (previousValue: T, currentValue: V, currentIndex: number, array: Array<V>) => T, initialValue: T): T;
43
- /** See: {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/some | Array#some } */
44
- some<ThisArg = Collection<K, V>>(predicate: (value: V, index: number, array: Array<V>) => unknown, thisArg?: ThisArg): boolean;
45
- /** Get the values of this collection as an array. */
46
- toArray(): Array<V>;
47
- }
@@ -1,78 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- /** @module Collection */
4
- /** A {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map | Map} with some Array-like additions. */
5
- class Collection extends Map {
6
- /** If this collection is empty. */
7
- get empty() {
8
- return this.size === 0;
9
- }
10
- every(predicate, thisArg) {
11
- return this.toArray().every(predicate, thisArg);
12
- }
13
- filter(predicate, thisArg) {
14
- return this.toArray().filter(predicate, thisArg);
15
- }
16
- find(predicate, thisArg) {
17
- return this.toArray().find(predicate, thisArg);
18
- }
19
- /** See: {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/findIndex | Array#findIndex } */
20
- findIndex(predicate, thisArg) {
21
- return this.toArray().findIndex(predicate, thisArg);
22
- }
23
- first(amount) {
24
- if (amount === undefined) {
25
- const iterable = this.values();
26
- return iterable.next().value;
27
- }
28
- if (amount < 0) {
29
- return this.last(amount * -1);
30
- }
31
- amount = Math.min(amount, this.size);
32
- const iterable = this.values();
33
- return Array.from({ length: amount }, () => iterable.next().value);
34
- }
35
- last(amount) {
36
- const iterator = Array.from(this.values());
37
- if (amount === undefined) {
38
- return iterator.at(-1);
39
- }
40
- if (amount < 0) {
41
- return this.first(amount * -1);
42
- }
43
- if (!amount) {
44
- return [];
45
- }
46
- return iterator.slice(-amount);
47
- }
48
- /** See: {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map | Array#map } */
49
- map(predicate, thisArg) {
50
- return this.toArray().map(predicate, thisArg);
51
- }
52
- /**
53
- * Pick a random element from the collection, or undefined if the collection is empty.
54
- */
55
- random() {
56
- if (this.empty) {
57
- return undefined;
58
- }
59
- const iterable = Array.from(this.values());
60
- return iterable[Math.floor(Math.random() * iterable.length)];
61
- }
62
- reduce(predicate, initialValue) {
63
- return this.toArray().reduce(predicate, initialValue);
64
- }
65
- reduceRight(predicate, initialValue) {
66
- return this.toArray().reduceRight(predicate, initialValue);
67
- }
68
- /** See: {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/some | Array#some } */
69
- some(predicate, thisArg) {
70
- return this.toArray().some(predicate, thisArg);
71
- }
72
- /** Get the values of this collection as an array. */
73
- toArray() {
74
- return Array.from(this.values());
75
- }
76
- }
77
- exports.default = Collection;
78
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQ29sbGVjdGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi91dGlsL0NvbGxlY3Rpb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSx5QkFBeUI7QUFDekIsMklBQTJJO0FBQzNJLE1BQXFCLFVBQWlCLFNBQVEsR0FBUztJQUNuRCxtQ0FBbUM7SUFDbkMsSUFBSSxLQUFLO1FBQ0wsT0FBTyxJQUFJLENBQUMsSUFBSSxLQUFLLENBQUMsQ0FBQztJQUMzQixDQUFDO0lBS0QsS0FBSyxDQUFDLFNBQWdFLEVBQUUsT0FBaUI7UUFDckYsT0FBTyxJQUFJLENBQUMsT0FBTyxFQUFFLENBQUMsS0FBSyxDQUFDLFNBQVMsRUFBRSxPQUFPLENBQUMsQ0FBQztJQUNwRCxDQUFDO0lBTUQsTUFBTSxDQUFDLFNBQWdFLEVBQUUsT0FBaUI7UUFDdEYsT0FBTyxJQUFJLENBQUMsT0FBTyxFQUFFLENBQUMsTUFBTSxDQUFDLFNBQVMsRUFBRSxPQUFPLENBQUMsQ0FBRTtJQUN0RCxDQUFDO0lBS0QsSUFBSSxDQUFDLFNBQThELEVBQUUsT0FBaUI7UUFDbEYsT0FBTyxJQUFJLENBQUMsT0FBTyxFQUFFLENBQUMsSUFBSSxDQUFDLFNBQVMsRUFBRSxPQUFPLENBQUMsQ0FBQztJQUNuRCxDQUFDO0lBRUQsdUlBQXVJO0lBQ3ZJLFNBQVMsQ0FBQyxTQUE4RCxFQUFFLE9BQWlC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