disgroove 1.3.2 → 1.3.3-dev.1

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 (266) hide show
  1. package/dist/lib/Client.d.ts +234 -0
  2. package/dist/lib/Client.js +256 -0
  3. package/dist/lib/Client.js.map +1 -0
  4. package/dist/lib/constants.d.ts +1084 -0
  5. package/dist/lib/constants.js +1163 -0
  6. package/dist/lib/constants.js.map +1 -0
  7. package/dist/lib/gateway/Shard.d.ts +25 -0
  8. package/dist/lib/gateway/Shard.js +522 -0
  9. package/dist/lib/gateway/Shard.js.map +1 -0
  10. package/dist/lib/gateway/ShardsManager.d.ts +5 -0
  11. package/dist/lib/gateway/ShardsManager.js +13 -0
  12. package/dist/lib/gateway/ShardsManager.js.map +1 -0
  13. package/dist/lib/gateway/index.d.ts +2 -0
  14. package/dist/lib/gateway/index.js +19 -0
  15. package/dist/lib/gateway/index.js.map +1 -0
  16. package/dist/lib/index.d.ts +7 -0
  17. package/dist/lib/index.js +24 -0
  18. package/dist/lib/index.js.map +1 -0
  19. package/dist/lib/rest/CDN.d.ts +21 -0
  20. package/dist/lib/rest/CDN.js +46 -0
  21. package/dist/lib/rest/CDN.js.map +1 -0
  22. package/dist/lib/rest/Endpoints.d.ts +94 -0
  23. package/dist/lib/rest/Endpoints.js +211 -0
  24. package/dist/lib/rest/Endpoints.js.map +1 -0
  25. package/dist/lib/rest/REST.d.ts +22 -0
  26. package/dist/lib/rest/REST.js +35 -0
  27. package/dist/lib/rest/REST.js.map +1 -0
  28. package/dist/lib/rest/RequestsManager.d.ts +17 -0
  29. package/dist/lib/rest/RequestsManager.js +124 -0
  30. package/dist/lib/rest/RequestsManager.js.map +1 -0
  31. package/dist/lib/rest/index.d.ts +4 -0
  32. package/dist/lib/rest/index.js +34 -0
  33. package/dist/lib/rest/index.js.map +1 -0
  34. package/dist/lib/structures/Application.d.ts +174 -0
  35. package/dist/lib/structures/Application.js +328 -0
  36. package/dist/lib/structures/Application.js.map +1 -0
  37. package/dist/lib/structures/ApplicationCommand.d.ts +45 -0
  38. package/dist/lib/structures/ApplicationCommand.js +127 -0
  39. package/dist/lib/structures/ApplicationCommand.js.map +1 -0
  40. package/dist/lib/structures/AuditLog.d.ts +20 -0
  41. package/dist/lib/structures/AuditLog.js +76 -0
  42. package/dist/lib/structures/AuditLog.js.map +1 -0
  43. package/dist/lib/structures/AutoModerationRule.d.ts +34 -0
  44. package/dist/lib/structures/AutoModerationRule.js +96 -0
  45. package/dist/lib/structures/AutoModerationRule.js.map +1 -0
  46. package/dist/lib/structures/Base.d.ts +17 -0
  47. package/dist/lib/structures/Base.js +31 -0
  48. package/dist/lib/structures/Base.js.map +1 -0
  49. package/dist/lib/structures/Channel.d.ts +253 -0
  50. package/dist/lib/structures/Channel.js +591 -0
  51. package/dist/lib/structures/Channel.js.map +1 -0
  52. package/dist/lib/structures/ClientApplication.d.ts +150 -0
  53. package/dist/lib/structures/ClientApplication.js +241 -0
  54. package/dist/lib/structures/ClientApplication.js.map +1 -0
  55. package/dist/lib/structures/Emoji.d.ts +28 -0
  56. package/dist/lib/structures/Emoji.js +79 -0
  57. package/dist/lib/structures/Emoji.js.map +1 -0
  58. package/dist/lib/structures/Entitlement.d.ts +24 -0
  59. package/dist/lib/structures/Entitlement.js +68 -0
  60. package/dist/lib/structures/Entitlement.js.map +1 -0
  61. package/dist/lib/structures/Guild.d.ts +462 -0
  62. package/dist/lib/structures/Guild.js +1095 -0
  63. package/dist/lib/structures/Guild.js.map +1 -0
  64. package/dist/lib/structures/GuildMember.d.ts +50 -0
  65. package/dist/lib/structures/GuildMember.js +149 -0
  66. package/dist/lib/structures/GuildMember.js.map +1 -0
  67. package/dist/lib/structures/GuildScheduledEvent.d.ts +49 -0
  68. package/dist/lib/structures/GuildScheduledEvent.js +118 -0
  69. package/dist/lib/structures/GuildScheduledEvent.js.map +1 -0
  70. package/dist/lib/structures/GuildTemplate.d.ts +32 -0
  71. package/dist/lib/structures/GuildTemplate.js +76 -0
  72. package/dist/lib/structures/GuildTemplate.js.map +1 -0
  73. package/dist/lib/structures/Integration.d.ts +30 -0
  74. package/dist/lib/structures/Integration.js +102 -0
  75. package/dist/lib/structures/Integration.js.map +1 -0
  76. package/dist/lib/structures/Interaction.d.ts +76 -0
  77. package/dist/lib/structures/Interaction.js +345 -0
  78. package/dist/lib/structures/Interaction.js.map +1 -0
  79. package/dist/lib/structures/Invite.d.ts +28 -0
  80. package/dist/lib/structures/Invite.js +86 -0
  81. package/dist/lib/structures/Invite.js.map +1 -0
  82. package/dist/lib/structures/Message.d.ts +84 -0
  83. package/dist/lib/structures/Message.js +300 -0
  84. package/dist/lib/structures/Message.js.map +1 -0
  85. package/dist/lib/structures/Role.d.ts +37 -0
  86. package/dist/lib/structures/Role.js +90 -0
  87. package/dist/lib/structures/Role.js.map +1 -0
  88. package/dist/lib/structures/SKU.d.ts +23 -0
  89. package/dist/lib/structures/SKU.js +63 -0
  90. package/dist/lib/structures/SKU.js.map +1 -0
  91. package/dist/lib/structures/StageInstance.d.ts +24 -0
  92. package/dist/lib/structures/StageInstance.js +57 -0
  93. package/dist/lib/structures/StageInstance.js.map +1 -0
  94. package/dist/lib/structures/Sticker.d.ts +31 -0
  95. package/dist/lib/structures/Sticker.js +86 -0
  96. package/dist/lib/structures/Sticker.js.map +1 -0
  97. package/dist/lib/structures/Team.d.ts +14 -0
  98. package/dist/lib/structures/Team.js +39 -0
  99. package/dist/lib/structures/Team.js.map +1 -0
  100. package/dist/lib/structures/TestEntitlement.d.ts +23 -0
  101. package/dist/lib/structures/TestEntitlement.js +61 -0
  102. package/dist/lib/structures/TestEntitlement.js.map +1 -0
  103. package/dist/lib/structures/UnavailableGuild.d.ts +11 -0
  104. package/dist/lib/structures/UnavailableGuild.js +25 -0
  105. package/dist/lib/structures/UnavailableGuild.js.map +1 -0
  106. package/dist/lib/structures/User.d.ts +63 -0
  107. package/dist/lib/structures/User.js +177 -0
  108. package/dist/lib/structures/User.js.map +1 -0
  109. package/dist/lib/structures/VoiceState.d.ts +26 -0
  110. package/dist/lib/structures/VoiceState.js +70 -0
  111. package/dist/lib/structures/VoiceState.js.map +1 -0
  112. package/dist/lib/structures/Webhook.d.ts +84 -0
  113. package/dist/lib/structures/Webhook.js +239 -0
  114. package/dist/lib/structures/Webhook.js.map +1 -0
  115. package/dist/lib/structures/index.d.ts +27 -0
  116. package/dist/lib/structures/index.js +44 -0
  117. package/dist/lib/structures/index.js.map +1 -0
  118. package/dist/lib/types/application-command.d.ts +102 -0
  119. package/dist/lib/types/application-command.js +3 -0
  120. package/dist/lib/types/application-command.js.map +1 -0
  121. package/dist/lib/types/application-role-connection-metadata.d.ts +18 -0
  122. package/dist/lib/types/application-role-connection-metadata.js +3 -0
  123. package/dist/lib/types/application-role-connection-metadata.js.map +1 -0
  124. package/dist/lib/types/application.d.ts +66 -0
  125. package/dist/lib/types/application.js +3 -0
  126. package/dist/lib/types/application.js.map +1 -0
  127. package/dist/lib/types/audit-log.d.ts +82 -0
  128. package/dist/lib/types/audit-log.js +3 -0
  129. package/dist/lib/types/audit-log.js.map +1 -0
  130. package/dist/lib/types/auto-moderation.d.ts +65 -0
  131. package/dist/lib/types/auto-moderation.js +3 -0
  132. package/dist/lib/types/auto-moderation.js.map +1 -0
  133. package/dist/lib/types/channel.d.ts +456 -0
  134. package/dist/lib/types/channel.js +3 -0
  135. package/dist/lib/types/channel.js.map +1 -0
  136. package/dist/lib/types/emoji.d.ts +22 -0
  137. package/dist/lib/types/emoji.js +3 -0
  138. package/dist/lib/types/emoji.js.map +1 -0
  139. package/dist/lib/types/entitlements.d.ts +32 -0
  140. package/dist/lib/types/entitlements.js +3 -0
  141. package/dist/lib/types/entitlements.js.map +1 -0
  142. package/dist/lib/types/gateway-events.d.ts +805 -0
  143. package/dist/lib/types/gateway-events.js +3 -0
  144. package/dist/lib/types/gateway-events.js.map +1 -0
  145. package/dist/lib/types/guild-scheduled-event.d.ts +57 -0
  146. package/dist/lib/types/guild-scheduled-event.js +3 -0
  147. package/dist/lib/types/guild-scheduled-event.js.map +1 -0
  148. package/dist/lib/types/guild-template.d.ts +28 -0
  149. package/dist/lib/types/guild-template.js +3 -0
  150. package/dist/lib/types/guild-template.js.map +1 -0
  151. package/dist/lib/types/guild.d.ts +333 -0
  152. package/dist/lib/types/guild.js +3 -0
  153. package/dist/lib/types/guild.js.map +1 -0
  154. package/dist/lib/types/index.d.ts +23 -0
  155. package/dist/lib/types/index.js +40 -0
  156. package/dist/lib/types/index.js.map +1 -0
  157. package/dist/lib/types/interaction.d.ts +170 -0
  158. package/dist/lib/types/interaction.js +3 -0
  159. package/dist/lib/types/interaction.js.map +1 -0
  160. package/dist/lib/types/invite.d.ts +59 -0
  161. package/dist/lib/types/invite.js +3 -0
  162. package/dist/lib/types/invite.js.map +1 -0
  163. package/dist/lib/types/message-components.d.ts +100 -0
  164. package/dist/lib/types/message-components.js +3 -0
  165. package/dist/lib/types/message-components.js.map +1 -0
  166. package/dist/lib/types/role.d.ts +47 -0
  167. package/dist/lib/types/role.js +3 -0
  168. package/dist/lib/types/role.js.map +1 -0
  169. package/dist/lib/types/sku.d.ts +30 -0
  170. package/dist/lib/types/sku.js +3 -0
  171. package/dist/lib/types/sku.js.map +1 -0
  172. package/dist/lib/types/stage-instance.d.ts +20 -0
  173. package/dist/lib/types/stage-instance.js +3 -0
  174. package/dist/lib/types/stage-instance.js.map +1 -0
  175. package/dist/lib/types/sticker.d.ts +61 -0
  176. package/dist/lib/types/sticker.js +3 -0
  177. package/dist/lib/types/sticker.js.map +1 -0
  178. package/dist/lib/types/team.d.ts +30 -0
  179. package/dist/lib/types/team.js +3 -0
  180. package/dist/lib/types/team.js.map +1 -0
  181. package/dist/lib/types/user.d.ts +77 -0
  182. package/dist/lib/types/user.js +3 -0
  183. package/dist/lib/types/user.js.map +1 -0
  184. package/dist/lib/types/voice.d.ts +47 -0
  185. package/dist/lib/types/voice.js +3 -0
  186. package/dist/lib/types/voice.js.map +1 -0
  187. package/dist/lib/types/webhook.d.ts +31 -0
  188. package/dist/lib/types/webhook.js +3 -0
  189. package/dist/lib/types/webhook.js.map +1 -0
  190. package/dist/lib/utils/Util.d.ts +15 -0
  191. package/dist/lib/utils/Util.js +543 -0
  192. package/dist/lib/utils/Util.js.map +1 -0
  193. package/dist/lib/utils/errors.d.ts +12 -0
  194. package/dist/lib/utils/errors.js +25 -0
  195. package/dist/lib/utils/errors.js.map +1 -0
  196. package/dist/lib/utils/index.d.ts +2 -0
  197. package/dist/lib/utils/index.js +19 -0
  198. package/dist/lib/utils/index.js.map +1 -0
  199. package/dist/package.json +1 -1
  200. package/lib/Client.ts +616 -0
  201. package/lib/constants.ts +1173 -0
  202. package/lib/gateway/Shard.ts +704 -0
  203. package/lib/gateway/ShardsManager.ts +11 -0
  204. package/lib/gateway/index.ts +2 -0
  205. package/lib/index.ts +7 -0
  206. package/lib/rest/CDN.ts +56 -0
  207. package/lib/rest/Endpoints.ts +241 -0
  208. package/lib/rest/REST.ts +45 -0
  209. package/lib/rest/RequestsManager.ts +134 -0
  210. package/lib/rest/index.ts +4 -0
  211. package/lib/structures/Application.ts +599 -0
  212. package/lib/structures/ApplicationCommand.ts +187 -0
  213. package/lib/structures/AuditLog.ts +112 -0
  214. package/lib/structures/AutoModerationRule.ts +127 -0
  215. package/lib/structures/Base.ts +39 -0
  216. package/lib/structures/Channel.ts +921 -0
  217. package/lib/structures/ClientApplication.ts +515 -0
  218. package/lib/structures/Emoji.ts +95 -0
  219. package/lib/structures/Entitlement.ts +65 -0
  220. package/lib/structures/Guild.ts +1842 -0
  221. package/lib/structures/GuildMember.ts +193 -0
  222. package/lib/structures/GuildScheduledEvent.ts +164 -0
  223. package/lib/structures/GuildTemplate.ts +103 -0
  224. package/lib/structures/Integration.ts +136 -0
  225. package/lib/structures/Interaction.ts +506 -0
  226. package/lib/structures/Invite.ts +108 -0
  227. package/lib/structures/Message.ts +421 -0
  228. package/lib/structures/Role.ts +116 -0
  229. package/lib/structures/SKU.ts +63 -0
  230. package/lib/structures/StageInstance.ts +74 -0
  231. package/lib/structures/Sticker.ts +100 -0
  232. package/lib/structures/Team.ts +41 -0
  233. package/lib/structures/TestEntitlement.ts +78 -0
  234. package/lib/structures/UnavailableGuild.ts +27 -0
  235. package/lib/structures/User.ts +233 -0
  236. package/lib/structures/VoiceState.ts +72 -0
  237. package/lib/structures/Webhook.ts +341 -0
  238. package/lib/structures/index.ts +27 -0
  239. package/lib/types/application-command.ts +118 -0
  240. package/lib/types/application-role-connection-metadata.ts +23 -0
  241. package/lib/types/application.ts +77 -0
  242. package/lib/types/audit-log.ts +105 -0
  243. package/lib/types/auto-moderation.ts +78 -0
  244. package/lib/types/channel.ts +534 -0
  245. package/lib/types/emoji.ts +24 -0
  246. package/lib/types/entitlements.ts +34 -0
  247. package/lib/types/gateway-events.ts +970 -0
  248. package/lib/types/guild-scheduled-event.ts +67 -0
  249. package/lib/types/guild-template.ts +30 -0
  250. package/lib/types/guild.ts +388 -0
  251. package/lib/types/index.ts +23 -0
  252. package/lib/types/interaction.ts +224 -0
  253. package/lib/types/invite.ts +78 -0
  254. package/lib/types/message-components.ts +127 -0
  255. package/lib/types/role.ts +51 -0
  256. package/lib/types/sku.ts +32 -0
  257. package/lib/types/stage-instance.ts +22 -0
  258. package/lib/types/sticker.ts +67 -0
  259. package/lib/types/team.ts +34 -0
  260. package/lib/types/user.ts +93 -0
  261. package/lib/types/voice.ts +51 -0
  262. package/lib/types/webhook.ts +40 -0
  263. package/lib/utils/Util.ts +600 -0
  264. package/lib/utils/errors.ts +23 -0
  265. package/lib/utils/index.ts +2 -0
  266. package/package.json +1 -1
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=gateway-events.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gateway-events.js","sourceRoot":"","sources":["../../../lib/types/gateway-events.ts"],"names":[],"mappings":""}
@@ -0,0 +1,57 @@
1
+ import type { GuildScheduledEventPrivacyLevel, GuildScheduledEventStatus, GuildScheduledEventEntityTypes } from "../constants";
2
+ import type { JSONGuildMember, JSONUser, RawGuildMember, RawUser } from ".";
3
+ /** https://discord.com/developers/docs/resources/guild-scheduled-event#guild-scheduled-event-object-guild-scheduled-event-structure */
4
+ export interface RawGuildScheduledEvent {
5
+ id: string;
6
+ guild_id: string;
7
+ channel_id: string | null;
8
+ creator_id?: string | null;
9
+ name: string;
10
+ description?: string | null;
11
+ scheduled_start_time: string;
12
+ scheduled_end_time: string | null;
13
+ privacy_level: GuildScheduledEventPrivacyLevel;
14
+ status: GuildScheduledEventStatus;
15
+ entity_type: GuildScheduledEventEntityTypes;
16
+ entity_id?: string;
17
+ entity_metadata: RawGuildScheduledEventEntityMetadata | null;
18
+ creator?: RawUser;
19
+ user_count?: number;
20
+ image?: string;
21
+ }
22
+ /** https://discord.com/developers/docs/resources/guild-scheduled-event#guild-scheduled-event-object-guild-scheduled-event-entity-metadata */
23
+ export interface RawGuildScheduledEventEntityMetadata {
24
+ location?: string;
25
+ }
26
+ /** https://discord.com/developers/docs/resources/guild-scheduled-event#guild-scheduled-event-user-object-guild-scheduled-event-user-structure */
27
+ export interface RawGuildScheduledEventUser {
28
+ guild_scheduled_event_id: string;
29
+ user: RawUser;
30
+ member?: RawGuildMember;
31
+ }
32
+ export interface JSONGuildScheduledEvent {
33
+ id: string;
34
+ guildId: string;
35
+ channelId: string | null;
36
+ creatorId?: string | null;
37
+ name: string;
38
+ description?: string | null;
39
+ scheduledStartTime: string;
40
+ scheduledEndTime: string | null;
41
+ privacyLevel: GuildScheduledEventPrivacyLevel;
42
+ status: GuildScheduledEventStatus;
43
+ entityType: GuildScheduledEventEntityTypes;
44
+ entityId?: string;
45
+ entityMetadata: JSONGuildScheduledEventEntityMetadata | null;
46
+ creator?: JSONUser;
47
+ userCount?: number;
48
+ image?: string;
49
+ }
50
+ export interface JSONGuildScheduledEventEntityMetadata {
51
+ location?: string;
52
+ }
53
+ export interface JSONGuildScheduledEventUser {
54
+ guildScheduledEventId: string;
55
+ user: JSONUser;
56
+ member?: JSONGuildMember;
57
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=guild-scheduled-event.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"guild-scheduled-event.js","sourceRoot":"","sources":["../../../lib/types/guild-scheduled-event.ts"],"names":[],"mappings":""}
@@ -0,0 +1,28 @@
1
+ import type { JSONGuild, JSONUser, RawGuild, RawUser } from ".";
2
+ /** https://discord.com/developers/docs/resources/guild-template#guild-template-object-guild-template-structure */
3
+ export interface RawGuildTemplate {
4
+ code: string;
5
+ name: string;
6
+ description: string | null;
7
+ usage_count: number;
8
+ creator_id: string;
9
+ creator: RawUser;
10
+ created_at: string;
11
+ updated_at: string;
12
+ source_guild_id: string;
13
+ serialized_source_guild: RawGuild;
14
+ is_dirty: boolean | null;
15
+ }
16
+ export interface JSONGuildTemplate {
17
+ code: string;
18
+ name: string;
19
+ description: string | null;
20
+ usageCount: number;
21
+ creatorId: string;
22
+ creator: JSONUser;
23
+ createdAt: string;
24
+ updatedAt: string;
25
+ sourceGuildId: string;
26
+ serializedSourceGuild: JSONGuild;
27
+ isDirty: boolean | null;
28
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=guild-template.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"guild-template.js","sourceRoot":"","sources":["../../../lib/types/guild-template.ts"],"names":[],"mappings":""}
@@ -0,0 +1,333 @@
1
+ import type { VerificationLevel, DefaultMessageNotificationLevel, ExplicitContentFilterLevel, GuildFeatures, MFALevel, PremiumTier, GuildNSFWLevel, GuildMemberFlags, IntegrationExpireBehaviors, OAuth2Scopes, SystemChannelFlags, OnboardingMode, PromptTypes } from "../constants";
2
+ import type { RawChannel, RawEmoji, RawSticker, RawUser, RawRole, JSONEmoji, JSONSticker, JSONUser, JSONRole, JSONChannel } from ".";
3
+ /** https://discord.com/developers/docs/resources/guild#guild-object-guild-structure */
4
+ export interface RawGuild {
5
+ id: string;
6
+ name: string;
7
+ icon: string | null;
8
+ icon_hash?: string | null;
9
+ splash: string | null;
10
+ discovery_splash: string | null;
11
+ owner?: boolean;
12
+ owner_id: string;
13
+ permissions?: string;
14
+ region?: string | null;
15
+ afk_channel_id: string | null;
16
+ afk_timeout: number;
17
+ widget_enabled?: boolean;
18
+ widget_channel_id?: string | null;
19
+ verification_level: VerificationLevel;
20
+ default_message_notifications: DefaultMessageNotificationLevel;
21
+ explicit_content_filter: ExplicitContentFilterLevel;
22
+ roles: Array<RawRole>;
23
+ emojis: Array<RawEmoji>;
24
+ features: Array<GuildFeatures>;
25
+ mfa_level: MFALevel;
26
+ application_id: string | null;
27
+ system_channel_id: string | null;
28
+ system_channel_flags: SystemChannelFlags;
29
+ rules_channel_id: string | null;
30
+ max_presences?: number | null;
31
+ max_members?: number;
32
+ vanity_url_code: string | null;
33
+ description: string | null;
34
+ banner: string | null;
35
+ premium_tier: PremiumTier;
36
+ premium_subscription_count?: number;
37
+ preferred_locale: string;
38
+ public_updates_channel_id: string | null;
39
+ max_video_channel_users?: number;
40
+ max_stage_video_channel_users?: number;
41
+ approximate_member_count?: number;
42
+ approximate_presence_count?: number;
43
+ welcome_screen?: RawWelcomeScreen;
44
+ nsfw_level: GuildNSFWLevel;
45
+ stickers?: Array<RawSticker>;
46
+ premium_progress_bar_enabled: boolean;
47
+ safety_alerts_channel_id: string | null;
48
+ }
49
+ /** https://discord.com/developers/docs/resources/guild#unavailable-guild-object */
50
+ export interface RawUnavailableGuild {
51
+ id: string;
52
+ unavailable: boolean;
53
+ }
54
+ /** https://discord.com/developers/docs/resources/guild#guild-preview-object-guild-preview-structure */
55
+ export interface RawGuildPreview {
56
+ id: string;
57
+ name: string;
58
+ icon: string | null;
59
+ splash: string | null;
60
+ discovery_splash: string | null;
61
+ emojis: Array<RawEmoji>;
62
+ features: Array<GuildFeatures>;
63
+ approximate_member_count?: number;
64
+ approximate_presence_count?: number;
65
+ description: string | null;
66
+ stickers?: Array<RawSticker>;
67
+ }
68
+ /** https://discord.com/developers/docs/resources/guild#guild-widget-settings-object-guild-widget-settings-structure */
69
+ export interface RawGuildWidgetSettings {
70
+ enabled: boolean;
71
+ channel_id: string | null;
72
+ }
73
+ /** https://discord.com/developers/docs/resources/guild#guild-widget-object-guild-widget-structure */
74
+ export interface RawGuildWidget {
75
+ id: string;
76
+ name: string;
77
+ instant_invite: string | null;
78
+ channels: Array<RawChannel>;
79
+ members: Array<RawUser>;
80
+ presence_count: number;
81
+ }
82
+ /** https://discord.com/developers/docs/resources/guild#guild-member-object-guild-member-structure */
83
+ export interface RawGuildMember {
84
+ user?: RawUser;
85
+ nick?: string | null;
86
+ avatar?: string | null;
87
+ roles: Array<string>;
88
+ joined_at: string;
89
+ premium_since?: number | null;
90
+ deaf: boolean;
91
+ mute: boolean;
92
+ flags: GuildMemberFlags;
93
+ pending?: boolean;
94
+ permissions?: string;
95
+ communication_disabled_until?: number | null;
96
+ }
97
+ /** https://discord.com/developers/docs/resources/guild#integration-object-integration-structure */
98
+ export interface RawIntegration {
99
+ id: string;
100
+ name: string;
101
+ type: string;
102
+ enabled: boolean;
103
+ syncing?: boolean;
104
+ role_id?: string;
105
+ enable_emoticons?: boolean;
106
+ expire_behavior?: IntegrationExpireBehaviors;
107
+ expire_grace_period?: number;
108
+ user?: RawUser;
109
+ account: RawIntegrationAccount;
110
+ synced_at?: string;
111
+ subscriber_count?: number;
112
+ revoked?: boolean;
113
+ application?: RawIntegrationApplication;
114
+ scopes?: Array<OAuth2Scopes>;
115
+ }
116
+ /** https://discord.com/developers/docs/resources/guild#integration-account-object-integration-account-structure */
117
+ export interface RawIntegrationAccount {
118
+ id: string;
119
+ name: string;
120
+ }
121
+ /** https://discord.com/developers/docs/resources/guild#integration-application-object-integration-application-structure */
122
+ export interface RawIntegrationApplication {
123
+ id: string;
124
+ name: string;
125
+ icon: string | null;
126
+ description: string;
127
+ bot?: RawUser;
128
+ }
129
+ /** https://discord.com/developers/docs/resources/guild#ban-object-ban-structure */
130
+ export interface RawBan {
131
+ reason: string | null;
132
+ user: RawUser;
133
+ }
134
+ /** https://discord.com/developers/docs/resources/guild#welcome-screen-object-welcome-screen-structure */
135
+ export interface RawWelcomeScreen {
136
+ description: string | null;
137
+ welcome_channels: Array<RawWelcomeScreenChannel>;
138
+ }
139
+ /** https://discord.com/developers/docs/resources/guild#welcome-screen-object-welcome-screen-channel-structure */
140
+ export interface RawWelcomeScreenChannel {
141
+ channel_id: string;
142
+ description: string;
143
+ emoji_id: string | null;
144
+ emoji_name: string | null;
145
+ }
146
+ /** https://discord.com/developers/docs/resources/guild#guild-onboarding-object-guild-onboarding-structure */
147
+ export interface RawGuildOnboarding {
148
+ guild_id: string;
149
+ prompts: Array<RawOnboardingPrompt>;
150
+ default_channel_ids: Array<string>;
151
+ enabled: boolean;
152
+ mode: OnboardingMode;
153
+ }
154
+ /** https://discord.com/developers/docs/resources/guild#guild-onboarding-object-onboarding-prompt-structure */
155
+ export interface RawOnboardingPrompt {
156
+ id: string;
157
+ type: PromptTypes;
158
+ options: Array<RawPromptOption>;
159
+ title: string;
160
+ single_select: boolean;
161
+ required: boolean;
162
+ in_onboarding: boolean;
163
+ }
164
+ /** https://discord.com/developers/docs/resources/guild#guild-onboarding-object-prompt-option-structure */
165
+ export interface RawPromptOption {
166
+ id: string;
167
+ channel_ids: Array<string>;
168
+ role_ids: Array<string>;
169
+ emoji?: RawEmoji;
170
+ emoji_id?: string;
171
+ emoji_name?: string;
172
+ emoji_animated?: boolean;
173
+ title: string;
174
+ description: string | null;
175
+ }
176
+ export interface JSONGuild {
177
+ id: string;
178
+ name: string;
179
+ icon: string | null;
180
+ iconHash?: string | null;
181
+ splash: string | null;
182
+ discoverySplash: string | null;
183
+ owner?: boolean;
184
+ ownerId: string;
185
+ permissions?: string;
186
+ region?: string | null;
187
+ afkChannelId: string | null;
188
+ afkTimeout: number;
189
+ widgetEnabled?: boolean;
190
+ widgetChannelId?: string | null;
191
+ verificationLevel: VerificationLevel;
192
+ defaultMessageNotifications: DefaultMessageNotificationLevel;
193
+ explicitContentFilter: ExplicitContentFilterLevel;
194
+ roles: Array<JSONRole>;
195
+ emojis: Array<JSONEmoji>;
196
+ features: Array<GuildFeatures>;
197
+ mfaLevel: MFALevel;
198
+ applicationId: string | null;
199
+ systemChannelId: string | null;
200
+ systemChannelFlags: SystemChannelFlags;
201
+ rulesChannelId: string | null;
202
+ maxPresences?: number | null;
203
+ maxMembers?: number;
204
+ vanityURLCode: string | null;
205
+ description: string | null;
206
+ banner: string | null;
207
+ premiumTier: PremiumTier;
208
+ premiumSubscriptionCount?: number;
209
+ preferredLocale: string;
210
+ publicUpdatesChannelId: string | null;
211
+ maxVideoChannelUsers?: number;
212
+ maxStageVideoChannelUsers?: number;
213
+ approximateMemberCount?: number;
214
+ approximatePresenceCount?: number;
215
+ welcomeScreen?: JSONWelcomeScreen;
216
+ nsfwLevel: GuildNSFWLevel;
217
+ stickers?: Array<JSONSticker>;
218
+ premiumProgressBarEnabled: boolean;
219
+ safetyAlertsChannelId: string | null;
220
+ }
221
+ export interface JSONUnavailableGuild {
222
+ id: string;
223
+ unavailable: boolean;
224
+ }
225
+ export interface JSONGuildPreview {
226
+ id: string;
227
+ name: string;
228
+ icon: string | null;
229
+ splash: string | null;
230
+ discoverySplash: string | null;
231
+ emojis: Array<JSONEmoji>;
232
+ features: Array<GuildFeatures>;
233
+ approximateMemberCount?: number;
234
+ approximatePresenceCount?: number;
235
+ description: string | null;
236
+ stickers?: Array<JSONSticker>;
237
+ }
238
+ export interface JSONGuildWidgetSettings {
239
+ enabled: boolean;
240
+ channelId: string | null;
241
+ }
242
+ export interface JSONGuildWidget {
243
+ id: string;
244
+ name: string;
245
+ instantInvite: string | null;
246
+ channels: Array<JSONChannel>;
247
+ members: Array<JSONUser>;
248
+ presenceCount: number;
249
+ }
250
+ export interface JSONGuildMember {
251
+ user?: JSONUser;
252
+ nick?: string | null;
253
+ avatar?: string | null;
254
+ roles: Array<string>;
255
+ joinedAt: string;
256
+ premiumSince?: number | null;
257
+ deaf: boolean;
258
+ mute: boolean;
259
+ flags: GuildMemberFlags;
260
+ pending?: boolean;
261
+ permissions?: string;
262
+ communicationDisabledUntil?: number | null;
263
+ }
264
+ export interface JSONIntegration {
265
+ id: string;
266
+ name: string;
267
+ type: string;
268
+ enabled: boolean;
269
+ syncing?: boolean;
270
+ roleId?: string;
271
+ enableEmoticons?: boolean;
272
+ expireBehavior?: IntegrationExpireBehaviors;
273
+ expireGracePeriod?: number;
274
+ user?: JSONUser;
275
+ account: JSONIntegrationAccount;
276
+ syncedAt?: string;
277
+ subscriberCount?: number;
278
+ revoked?: boolean;
279
+ application?: JSONIntegrationApplication;
280
+ scopes?: Array<OAuth2Scopes>;
281
+ }
282
+ export interface JSONIntegrationAccount {
283
+ id: string;
284
+ name: string;
285
+ }
286
+ export interface JSONIntegrationApplication {
287
+ id: string;
288
+ name: string;
289
+ icon: string | null;
290
+ description: string;
291
+ bot?: JSONUser;
292
+ }
293
+ export interface JSONBan {
294
+ reason: string | null;
295
+ user: JSONUser;
296
+ }
297
+ export interface JSONWelcomeScreen {
298
+ description: string | null;
299
+ welcomeChannels: Array<JSONWelcomeScreenChannel>;
300
+ }
301
+ export interface JSONWelcomeScreenChannel {
302
+ channelId: string;
303
+ description: string;
304
+ emojiId: string | null;
305
+ emojiName: string | null;
306
+ }
307
+ export interface JSONGuildOnboarding {
308
+ guildId: string;
309
+ prompts: Array<JSONOnboardingPrompt>;
310
+ defaultChannelIds: Array<string>;
311
+ enabled: boolean;
312
+ mode: OnboardingMode;
313
+ }
314
+ export interface JSONOnboardingPrompt {
315
+ id: string;
316
+ type: PromptTypes;
317
+ options: Array<JSONPromptOption>;
318
+ title: string;
319
+ singleSelect: boolean;
320
+ required: boolean;
321
+ inOnboarding: boolean;
322
+ }
323
+ export interface JSONPromptOption {
324
+ id: string;
325
+ channelIds: Array<string>;
326
+ roleIds: Array<string>;
327
+ emoji?: JSONEmoji;
328
+ emojiId?: string;
329
+ emojiName?: string;
330
+ emojiAnimated?: boolean;
331
+ title: string;
332
+ description: string | null;
333
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=guild.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"guild.js","sourceRoot":"","sources":["../../../lib/types/guild.ts"],"names":[],"mappings":""}
@@ -0,0 +1,23 @@
1
+ export * from "./application-command";
2
+ export * from "./application-role-connection-metadata";
3
+ export * from "./application";
4
+ export * from "./audit-log";
5
+ export * from "./auto-moderation";
6
+ export * from "./channel";
7
+ export * from "./emoji";
8
+ export * from "./entitlements";
9
+ export * from "./gateway-events";
10
+ export * from "./guild-scheduled-event";
11
+ export * from "./guild-template";
12
+ export * from "./guild";
13
+ export * from "./interaction";
14
+ export * from "./invite";
15
+ export * from "./message-components";
16
+ export * from "./role";
17
+ export * from "./sku";
18
+ export * from "./stage-instance";
19
+ export * from "./sticker";
20
+ export * from "./team";
21
+ export * from "./user";
22
+ export * from "./voice";
23
+ export * from "./webhook";
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./application-command"), exports);
18
+ __exportStar(require("./application-role-connection-metadata"), exports);
19
+ __exportStar(require("./application"), exports);
20
+ __exportStar(require("./audit-log"), exports);
21
+ __exportStar(require("./auto-moderation"), exports);
22
+ __exportStar(require("./channel"), exports);
23
+ __exportStar(require("./emoji"), exports);
24
+ __exportStar(require("./entitlements"), exports);
25
+ __exportStar(require("./gateway-events"), exports);
26
+ __exportStar(require("./guild-scheduled-event"), exports);
27
+ __exportStar(require("./guild-template"), exports);
28
+ __exportStar(require("./guild"), exports);
29
+ __exportStar(require("./interaction"), exports);
30
+ __exportStar(require("./invite"), exports);
31
+ __exportStar(require("./message-components"), exports);
32
+ __exportStar(require("./role"), exports);
33
+ __exportStar(require("./sku"), exports);
34
+ __exportStar(require("./stage-instance"), exports);
35
+ __exportStar(require("./sticker"), exports);
36
+ __exportStar(require("./team"), exports);
37
+ __exportStar(require("./user"), exports);
38
+ __exportStar(require("./voice"), exports);
39
+ __exportStar(require("./webhook"), exports);
40
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC;AACtC,yEAAuD;AACvD,gDAA8B;AAC9B,8CAA4B;AAC5B,oDAAkC;AAClC,4CAA0B;AAC1B,0CAAwB;AACxB,iDAA+B;AAC/B,mDAAiC;AACjC,0DAAwC;AACxC,mDAAiC;AACjC,0CAAwB;AACxB,gDAA8B;AAC9B,2CAAyB;AACzB,uDAAqC;AACrC,yCAAuB;AACvB,wCAAsB;AACtB,mDAAiC;AACjC,4CAA0B;AAC1B,yCAAuB;AACvB,yCAAuB;AACvB,0CAAwB;AACxB,4CAA0B"}