seyfert 2.0.0 → 2.1.1-dev-11310514874.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.
Files changed (265) hide show
  1. package/lib/api/Router.d.ts +2 -2
  2. package/lib/api/Router.js +2 -1
  3. package/lib/api/Routes/applications.d.ts +29 -30
  4. package/lib/api/Routes/cdn.d.ts +6 -1
  5. package/lib/api/Routes/channels.d.ts +44 -45
  6. package/lib/api/Routes/gateway.d.ts +3 -4
  7. package/lib/api/Routes/guilds.d.ts +81 -80
  8. package/lib/api/Routes/index.d.ts +3 -1
  9. package/lib/api/Routes/interactions.d.ts +9 -3
  10. package/lib/api/Routes/invites.d.ts +3 -4
  11. package/lib/api/Routes/skus.d.ts +10 -0
  12. package/lib/api/Routes/skus.js +2 -0
  13. package/lib/api/Routes/soundboard.d.ts +23 -0
  14. package/lib/api/Routes/soundboard.js +2 -0
  15. package/lib/api/Routes/stage-instances.d.ts +5 -6
  16. package/lib/api/Routes/stickers.d.ts +3 -4
  17. package/lib/api/Routes/users.d.ts +11 -12
  18. package/lib/api/Routes/voice.d.ts +2 -3
  19. package/lib/api/Routes/webhooks.d.ts +16 -15
  20. package/lib/api/api.d.ts +17 -11
  21. package/lib/api/api.js +26 -22
  22. package/lib/api/shared.d.ts +2 -2
  23. package/lib/api/utils/constants.d.ts +3 -1
  24. package/lib/api/utils/constants.js +3 -2
  25. package/lib/builders/ActionRow.d.ts +1 -1
  26. package/lib/builders/Attachment.d.ts +3 -3
  27. package/lib/builders/Attachment.js +13 -13
  28. package/lib/builders/Button.d.ts +1 -1
  29. package/lib/builders/Button.js +1 -1
  30. package/lib/builders/Embed.d.ts +1 -1
  31. package/lib/builders/Embed.js +2 -2
  32. package/lib/builders/Modal.d.ts +1 -1
  33. package/lib/builders/Poll.d.ts +1 -1
  34. package/lib/builders/Poll.js +1 -1
  35. package/lib/builders/SelectMenu.d.ts +1 -1
  36. package/lib/builders/SelectMenu.js +1 -1
  37. package/lib/builders/types.d.ts +2 -1
  38. package/lib/cache/adapters/default.js +5 -3
  39. package/lib/cache/adapters/limited.d.ts +1 -2
  40. package/lib/cache/adapters/limited.js +34 -30
  41. package/lib/cache/adapters/workeradapter.js +3 -1
  42. package/lib/cache/index.d.ts +12 -12
  43. package/lib/cache/index.js +48 -39
  44. package/lib/cache/resources/bans.d.ts +2 -2
  45. package/lib/cache/resources/bans.js +1 -1
  46. package/lib/cache/resources/channels.d.ts +1 -1
  47. package/lib/cache/resources/default/guild-related.d.ts +1 -2
  48. package/lib/cache/resources/emojis.d.ts +2 -2
  49. package/lib/cache/resources/emojis.js +1 -1
  50. package/lib/cache/resources/guilds.d.ts +2 -2
  51. package/lib/cache/resources/guilds.js +7 -11
  52. package/lib/cache/resources/members.d.ts +2 -2
  53. package/lib/cache/resources/members.js +1 -1
  54. package/lib/cache/resources/messages.d.ts +2 -2
  55. package/lib/cache/resources/messages.js +3 -3
  56. package/lib/cache/resources/overwrites.d.ts +1 -1
  57. package/lib/cache/resources/roles.d.ts +2 -2
  58. package/lib/cache/resources/roles.js +1 -1
  59. package/lib/cache/resources/stickers.d.ts +2 -2
  60. package/lib/cache/resources/stickers.js +1 -1
  61. package/lib/cache/resources/users.d.ts +2 -2
  62. package/lib/cache/resources/users.js +1 -1
  63. package/lib/cache/resources/voice-states.d.ts +2 -2
  64. package/lib/cache/resources/voice-states.js +1 -1
  65. package/lib/client/base.d.ts +10 -15
  66. package/lib/client/base.js +48 -44
  67. package/lib/client/client.d.ts +4 -4
  68. package/lib/client/client.js +37 -38
  69. package/lib/client/collectors.js +1 -1
  70. package/lib/client/httpclient.d.ts +1 -1
  71. package/lib/client/httpclient.js +2 -2
  72. package/lib/client/transformers.d.ts +37 -34
  73. package/lib/client/transformers.js +66 -63
  74. package/lib/client/workerclient.d.ts +13 -13
  75. package/lib/client/workerclient.js +182 -65
  76. package/lib/collection.d.ts +3 -3
  77. package/lib/commands/applications/chat.d.ts +3 -3
  78. package/lib/commands/applications/chat.js +5 -6
  79. package/lib/commands/applications/chatcontext.d.ts +6 -6
  80. package/lib/commands/applications/chatcontext.js +16 -8
  81. package/lib/commands/applications/entryPoint.d.ts +46 -0
  82. package/lib/commands/applications/entryPoint.js +56 -0
  83. package/lib/commands/applications/entrycontext.d.ts +40 -0
  84. package/lib/commands/applications/entrycontext.js +85 -0
  85. package/lib/commands/applications/menu.d.ts +1 -1
  86. package/lib/commands/applications/menucontext.d.ts +5 -5
  87. package/lib/commands/applications/menucontext.js +6 -6
  88. package/lib/commands/applications/options.d.ts +7 -6
  89. package/lib/commands/applications/shared.d.ts +5 -2
  90. package/lib/commands/basecontext.d.ts +1 -1
  91. package/lib/commands/decorators.d.ts +20 -26
  92. package/lib/commands/decorators.js +8 -4
  93. package/lib/commands/handle.d.ts +13 -12
  94. package/lib/commands/handle.js +133 -65
  95. package/lib/commands/handler.d.ts +9 -7
  96. package/lib/commands/handler.js +27 -18
  97. package/lib/commands/index.d.ts +2 -0
  98. package/lib/commands/index.js +2 -0
  99. package/lib/commands/optionresolver.d.ts +4 -4
  100. package/lib/commands/optionresolver.js +4 -4
  101. package/lib/common/bot/watcher.d.ts +1 -1
  102. package/lib/common/it/formatter.d.ts +21 -21
  103. package/lib/common/it/formatter.js +40 -41
  104. package/lib/common/it/logger.js +1 -1
  105. package/lib/common/it/utils.d.ts +14 -6
  106. package/lib/common/it/utils.js +62 -27
  107. package/lib/common/shorters/application.d.ts +2 -3
  108. package/lib/common/shorters/application.js +3 -3
  109. package/lib/common/shorters/bans.js +1 -1
  110. package/lib/common/shorters/channels.d.ts +3 -3
  111. package/lib/common/shorters/channels.js +3 -3
  112. package/lib/common/shorters/emojis.js +4 -4
  113. package/lib/common/shorters/guilds.d.ts +3 -3
  114. package/lib/common/shorters/guilds.js +5 -9
  115. package/lib/common/shorters/interaction.d.ts +3 -3
  116. package/lib/common/shorters/interaction.js +6 -5
  117. package/lib/common/shorters/members.d.ts +4 -5
  118. package/lib/common/shorters/members.js +6 -7
  119. package/lib/common/shorters/messages.d.ts +1 -1
  120. package/lib/common/shorters/messages.js +4 -4
  121. package/lib/common/shorters/reactions.d.ts +1 -1
  122. package/lib/common/shorters/reactions.js +1 -1
  123. package/lib/common/shorters/roles.js +1 -1
  124. package/lib/common/shorters/templates.js +2 -2
  125. package/lib/common/shorters/threads.d.ts +1 -1
  126. package/lib/common/shorters/threads.js +17 -11
  127. package/lib/common/shorters/webhook.d.ts +1 -1
  128. package/lib/common/shorters/webhook.js +4 -4
  129. package/lib/common/types/options.d.ts +2 -2
  130. package/lib/common/types/resolvables.d.ts +1 -1
  131. package/lib/common/types/util.d.ts +4 -1
  132. package/lib/common/types/write.d.ts +3 -3
  133. package/lib/components/BaseComponent.js +1 -1
  134. package/lib/components/ButtonComponent.d.ts +1 -1
  135. package/lib/components/componentcommand.d.ts +1 -1
  136. package/lib/components/componentcontext.d.ts +4 -4
  137. package/lib/components/componentcontext.js +1 -1
  138. package/lib/components/handler.d.ts +10 -8
  139. package/lib/components/handler.js +16 -13
  140. package/lib/components/index.js +2 -1
  141. package/lib/components/modalcontext.d.ts +2 -2
  142. package/lib/components/modalcontext.js +1 -1
  143. package/lib/deps/mixer.d.ts +1 -1
  144. package/lib/deps/mixer.js +6 -1
  145. package/lib/events/handler.d.ts +5 -5
  146. package/lib/events/handler.js +69 -19
  147. package/lib/events/hooks/application_command.d.ts +1 -1
  148. package/lib/events/hooks/auto_moderation.d.ts +1 -1
  149. package/lib/events/hooks/auto_moderation.js +1 -1
  150. package/lib/events/hooks/channel.d.ts +1 -1
  151. package/lib/events/hooks/custom.d.ts +1 -0
  152. package/lib/events/hooks/custom.js +5 -1
  153. package/lib/events/hooks/dispatch.d.ts +1 -1
  154. package/lib/events/hooks/entitlement.d.ts +4 -5
  155. package/lib/events/hooks/entitlement.js +4 -4
  156. package/lib/events/hooks/guild.d.ts +3 -3
  157. package/lib/events/hooks/guild.js +1 -1
  158. package/lib/events/hooks/index.d.ts +1 -0
  159. package/lib/events/hooks/index.js +1 -0
  160. package/lib/events/hooks/integration.d.ts +1 -1
  161. package/lib/events/hooks/integration.js +1 -1
  162. package/lib/events/hooks/interactions.d.ts +3 -3
  163. package/lib/events/hooks/invite.d.ts +1 -1
  164. package/lib/events/hooks/message.d.ts +3 -3
  165. package/lib/events/hooks/message.js +1 -1
  166. package/lib/events/hooks/presence.d.ts +2 -2
  167. package/lib/events/hooks/soundboard.d.ts +155 -0
  168. package/lib/events/hooks/soundboard.js +28 -0
  169. package/lib/events/hooks/stage.d.ts +2 -2
  170. package/lib/events/hooks/subscriptions.d.ts +35 -0
  171. package/lib/events/hooks/subscriptions.js +16 -0
  172. package/lib/events/hooks/thread.d.ts +2 -2
  173. package/lib/events/hooks/thread.js +2 -2
  174. package/lib/events/hooks/typing.d.ts +1 -1
  175. package/lib/events/hooks/typing.js +1 -1
  176. package/lib/events/hooks/user.d.ts +2 -2
  177. package/lib/events/hooks/voice.d.ts +2 -2
  178. package/lib/events/hooks/voice.js +1 -1
  179. package/lib/events/hooks/webhook.d.ts +1 -1
  180. package/lib/index.d.ts +2 -2
  181. package/lib/index.js +3 -5
  182. package/lib/langs/handler.d.ts +2 -2
  183. package/lib/structures/Guild.d.ts +7 -4
  184. package/lib/structures/Guild.js +1 -1
  185. package/lib/structures/GuildBan.d.ts +1 -1
  186. package/lib/structures/GuildMember.d.ts +7 -5
  187. package/lib/structures/GuildMember.js +5 -3
  188. package/lib/structures/GuildRole.d.ts +1 -1
  189. package/lib/structures/GuildTemplate.d.ts +1 -1
  190. package/lib/structures/Interaction.d.ts +39 -16
  191. package/lib/structures/Interaction.js +82 -26
  192. package/lib/structures/Message.d.ts +4 -10
  193. package/lib/structures/Message.js +5 -8
  194. package/lib/structures/Poll.d.ts +3 -3
  195. package/lib/structures/Sticker.d.ts +2 -2
  196. package/lib/structures/Sticker.js +1 -1
  197. package/lib/structures/VoiceState.d.ts +2 -1
  198. package/lib/structures/VoiceState.js +1 -1
  199. package/lib/structures/Webhook.d.ts +3 -3
  200. package/lib/structures/Webhook.js +1 -1
  201. package/lib/structures/channels.d.ts +4 -4
  202. package/lib/structures/channels.js +8 -7
  203. package/lib/structures/extra/BaseGuild.d.ts +11 -1
  204. package/lib/structures/extra/BaseGuild.js +27 -0
  205. package/lib/structures/extra/BitField.d.ts +3 -3
  206. package/lib/structures/extra/BitField.js +34 -33
  207. package/lib/structures/extra/DiscordBase.js +1 -1
  208. package/lib/structures/extra/Permissions.d.ts +2 -0
  209. package/lib/structures/extra/Permissions.js +21 -0
  210. package/lib/types/gateway.d.ts +71 -6
  211. package/lib/types/payloads/_interactions/_applicationCommands/chatInput.d.ts +6 -1
  212. package/lib/types/payloads/_interactions/applicationCommands.d.ts +41 -6
  213. package/lib/types/payloads/_interactions/applicationCommands.js +28 -1
  214. package/lib/types/payloads/_interactions/base.d.ts +1 -1
  215. package/lib/types/payloads/_interactions/responses.d.ts +74 -2
  216. package/lib/types/payloads/_interactions/responses.js +4 -0
  217. package/lib/types/payloads/channel.d.ts +46 -6
  218. package/lib/types/payloads/channel.js +5 -1
  219. package/lib/types/payloads/guild.d.ts +9 -1
  220. package/lib/types/payloads/guild.js +8 -0
  221. package/lib/types/payloads/index.d.ts +1 -0
  222. package/lib/types/payloads/index.js +1 -0
  223. package/lib/types/payloads/monetization.d.ts +29 -1
  224. package/lib/types/payloads/monetization.js +10 -1
  225. package/lib/types/payloads/soundboard.d.ts +23 -0
  226. package/lib/types/payloads/soundboard.js +5 -0
  227. package/lib/types/payloads/user.js +0 -1
  228. package/lib/types/rest/application.d.ts +3 -3
  229. package/lib/types/rest/auditLog.d.ts +1 -1
  230. package/lib/types/rest/channel.d.ts +5 -18
  231. package/lib/types/rest/guild.d.ts +2 -2
  232. package/lib/types/rest/guildScheduledEvent.d.ts +1 -1
  233. package/lib/types/rest/index.d.ts +1 -0
  234. package/lib/types/rest/index.js +1 -0
  235. package/lib/types/rest/interactions.d.ts +30 -8
  236. package/lib/types/rest/monetization.d.ts +22 -1
  237. package/lib/types/rest/oauth2.d.ts +1 -1
  238. package/lib/types/rest/poll.d.ts +1 -1
  239. package/lib/types/rest/soundboard.d.ts +64 -0
  240. package/lib/types/rest/soundboard.js +2 -0
  241. package/lib/types/rest/stageInstance.d.ts +1 -1
  242. package/lib/types/rest/template.d.ts +1 -1
  243. package/lib/types/rest/user.d.ts +1 -1
  244. package/lib/types/rest/webhook.d.ts +3 -3
  245. package/lib/types/utils/index.d.ts +27 -7
  246. package/lib/types/utils/index.js +25 -6
  247. package/lib/websocket/SharedTypes.d.ts +18 -3
  248. package/lib/websocket/constants/index.d.ts +3 -2
  249. package/lib/websocket/constants/index.js +4 -4
  250. package/lib/websocket/discord/basesocket.d.ts +1 -1
  251. package/lib/websocket/discord/shard.d.ts +4 -3
  252. package/lib/websocket/discord/shard.js +47 -24
  253. package/lib/websocket/discord/sharder.d.ts +9 -6
  254. package/lib/websocket/discord/sharder.js +92 -17
  255. package/lib/websocket/discord/shared.d.ts +12 -3
  256. package/lib/websocket/discord/socket/custom.d.ts +1 -1
  257. package/lib/websocket/discord/socket/custom.js +70 -40
  258. package/lib/websocket/discord/worker.d.ts +9 -2
  259. package/lib/websocket/discord/workermanager.d.ts +42 -16
  260. package/lib/websocket/discord/workermanager.js +170 -46
  261. package/lib/websocket/structures/timeout.d.ts +4 -5
  262. package/lib/websocket/structures/timeout.js +23 -24
  263. package/package.json +72 -65
  264. package/lib/cache/resources/threads.d.ts +0 -14
  265. package/lib/cache/resources/threads.js +0 -32
@@ -0,0 +1,155 @@
1
+ import type { UsingClient } from '../../commands';
2
+ import type { GatewayGuildSoundboardSoundCreateDispatchData, GatewayGuildSoundboardSoundDeleteDispatchData, GatewayGuildSoundboardSoundUpdateDispatchData, GatewayGuildSoundboardSoundsUpdateDispatchData, GatewaySoundboardSoundsDispatchData } from '../../types';
3
+ export declare const GUILD_SOUNDBOARD_SOUND_CREATE: (self: UsingClient, data: GatewayGuildSoundboardSoundCreateDispatchData) => {
4
+ name: string;
5
+ soundId: string;
6
+ volume: number;
7
+ emojiId: string | null;
8
+ emojiName: string | null;
9
+ guildId?: string | undefined;
10
+ available: boolean;
11
+ user?: {
12
+ id: string;
13
+ username: string;
14
+ discriminator: string;
15
+ globalName: string | null;
16
+ avatar: string | null;
17
+ bot?: boolean | undefined;
18
+ system?: boolean | undefined;
19
+ mfaEnabled?: boolean | undefined;
20
+ banner?: string | null | undefined;
21
+ accentColor?: number | null | undefined;
22
+ locale?: string | undefined;
23
+ verified?: boolean | undefined;
24
+ email?: string | null | undefined;
25
+ flags?: import("../../types").UserFlags | undefined;
26
+ premiumType?: import("../../types").UserPremiumType | undefined;
27
+ publicFlags?: import("../../types").UserFlags | undefined;
28
+ avatarDecoration?: string | null | undefined;
29
+ avatarDecorationData?: import("../../types").APIAvatarDecorationData | null | undefined;
30
+ } | undefined;
31
+ } | {
32
+ user: import("../..").User;
33
+ name: string;
34
+ soundId: string;
35
+ volume: number;
36
+ emojiId: string | null;
37
+ emojiName: string | null;
38
+ guildId?: string | undefined;
39
+ available: boolean;
40
+ };
41
+ export declare const GUILD_SOUNDBOARD_SOUND_UPDATE: (self: UsingClient, data: GatewayGuildSoundboardSoundUpdateDispatchData) => {
42
+ name: string;
43
+ soundId: string;
44
+ volume: number;
45
+ emojiId: string | null;
46
+ emojiName: string | null;
47
+ guildId?: string | undefined;
48
+ available: boolean;
49
+ user?: {
50
+ id: string;
51
+ username: string;
52
+ discriminator: string;
53
+ globalName: string | null;
54
+ avatar: string | null;
55
+ bot?: boolean | undefined;
56
+ system?: boolean | undefined;
57
+ mfaEnabled?: boolean | undefined;
58
+ banner?: string | null | undefined;
59
+ accentColor?: number | null | undefined;
60
+ locale?: string | undefined;
61
+ verified?: boolean | undefined;
62
+ email?: string | null | undefined;
63
+ flags?: import("../../types").UserFlags | undefined;
64
+ premiumType?: import("../../types").UserPremiumType | undefined;
65
+ publicFlags?: import("../../types").UserFlags | undefined;
66
+ avatarDecoration?: string | null | undefined;
67
+ avatarDecorationData?: import("../../types").APIAvatarDecorationData | null | undefined;
68
+ } | undefined;
69
+ } | {
70
+ user: import("../..").User;
71
+ name: string;
72
+ soundId: string;
73
+ volume: number;
74
+ emojiId: string | null;
75
+ emojiName: string | null;
76
+ guildId?: string | undefined;
77
+ available: boolean;
78
+ };
79
+ export declare const GUILD_SOUNDBOARD_SOUNDS_UPDATE: (self: UsingClient, data: GatewayGuildSoundboardSoundsUpdateDispatchData) => {
80
+ guildId: string;
81
+ sounds: ({
82
+ name: string;
83
+ soundId: string;
84
+ volume: number;
85
+ emojiId: string | null;
86
+ emojiName: string | null;
87
+ guildId?: string | undefined;
88
+ available: boolean;
89
+ user?: {
90
+ id: string;
91
+ username: string;
92
+ discriminator: string;
93
+ globalName: string | null;
94
+ avatar: string | null;
95
+ bot?: boolean | undefined;
96
+ system?: boolean | undefined;
97
+ mfaEnabled?: boolean | undefined;
98
+ banner?: string | null | undefined;
99
+ accentColor?: number | null | undefined;
100
+ locale?: string | undefined;
101
+ verified?: boolean | undefined;
102
+ email?: string | null | undefined;
103
+ flags?: import("../../types").UserFlags | undefined;
104
+ premiumType?: import("../../types").UserPremiumType | undefined;
105
+ publicFlags?: import("../../types").UserFlags | undefined;
106
+ avatarDecoration?: string | null | undefined;
107
+ avatarDecorationData?: import("../../types").APIAvatarDecorationData | null | undefined;
108
+ } | undefined;
109
+ } | {
110
+ user: import("../..").User;
111
+ name: string;
112
+ soundId: string;
113
+ volume: number;
114
+ emojiId: string | null;
115
+ emojiName: string | null;
116
+ guildId?: string | undefined;
117
+ available: boolean;
118
+ })[];
119
+ };
120
+ export declare const GUILD_SOUNDBOARD_SOUND_DELETE: (_: UsingClient, data: GatewayGuildSoundboardSoundDeleteDispatchData) => {
121
+ soundId: string;
122
+ guildId: string;
123
+ };
124
+ export declare const SOUNDBOARD_SOUNDS: (_: UsingClient, data: GatewaySoundboardSoundsDispatchData) => {
125
+ soundboardSounds: {
126
+ name: string;
127
+ soundId: string;
128
+ volume: number;
129
+ emojiId: string | null;
130
+ emojiName: string | null;
131
+ guildId?: string | undefined;
132
+ available: boolean;
133
+ user?: {
134
+ id: string;
135
+ username: string;
136
+ discriminator: string;
137
+ globalName: string | null;
138
+ avatar: string | null;
139
+ bot?: boolean | undefined;
140
+ system?: boolean | undefined;
141
+ mfaEnabled?: boolean | undefined;
142
+ banner?: string | null | undefined;
143
+ accentColor?: number | null | undefined;
144
+ locale?: string | undefined;
145
+ verified?: boolean | undefined;
146
+ email?: string | null | undefined;
147
+ flags?: import("../../types").UserFlags | undefined;
148
+ premiumType?: import("../../types").UserPremiumType | undefined;
149
+ publicFlags?: import("../../types").UserFlags | undefined;
150
+ avatarDecoration?: string | null | undefined;
151
+ avatarDecorationData?: import("../../types").APIAvatarDecorationData | null | undefined;
152
+ } | undefined;
153
+ }[];
154
+ guildId: string;
155
+ };
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SOUNDBOARD_SOUNDS = exports.GUILD_SOUNDBOARD_SOUND_DELETE = exports.GUILD_SOUNDBOARD_SOUNDS_UPDATE = exports.GUILD_SOUNDBOARD_SOUND_UPDATE = exports.GUILD_SOUNDBOARD_SOUND_CREATE = void 0;
4
+ const client_1 = require("../../client");
5
+ const common_1 = require("../../common");
6
+ const GUILD_SOUNDBOARD_SOUND_CREATE = (self, data) => {
7
+ return data.user ? { ...(0, common_1.toCamelCase)(data), user: client_1.Transformers.User(self, data.user) } : (0, common_1.toCamelCase)(data);
8
+ };
9
+ exports.GUILD_SOUNDBOARD_SOUND_CREATE = GUILD_SOUNDBOARD_SOUND_CREATE;
10
+ const GUILD_SOUNDBOARD_SOUND_UPDATE = (self, data) => {
11
+ return data.user ? { ...(0, common_1.toCamelCase)(data), user: client_1.Transformers.User(self, data.user) } : (0, common_1.toCamelCase)(data);
12
+ };
13
+ exports.GUILD_SOUNDBOARD_SOUND_UPDATE = GUILD_SOUNDBOARD_SOUND_UPDATE;
14
+ const GUILD_SOUNDBOARD_SOUNDS_UPDATE = (self, data) => {
15
+ return {
16
+ guildId: data.guild_id,
17
+ sounds: data.soundboard_sounds.map(d => d.user ? { ...(0, common_1.toCamelCase)(d), user: client_1.Transformers.User(self, d.user) } : (0, common_1.toCamelCase)(d)),
18
+ };
19
+ };
20
+ exports.GUILD_SOUNDBOARD_SOUNDS_UPDATE = GUILD_SOUNDBOARD_SOUNDS_UPDATE;
21
+ const GUILD_SOUNDBOARD_SOUND_DELETE = (_, data) => {
22
+ return (0, common_1.toCamelCase)(data);
23
+ };
24
+ exports.GUILD_SOUNDBOARD_SOUND_DELETE = GUILD_SOUNDBOARD_SOUND_DELETE;
25
+ const SOUNDBOARD_SOUNDS = (_, data) => {
26
+ return (0, common_1.toCamelCase)(data);
27
+ };
28
+ exports.SOUNDBOARD_SOUNDS = SOUNDBOARD_SOUNDS;
@@ -1,7 +1,7 @@
1
- import type { GatewayStageInstanceCreateDispatchData, GatewayStageInstanceDeleteDispatchData, GatewayStageInstanceUpdateDispatchData } from '../../types';
1
+ import type { StageInstances } from '../../cache/resources/stage-instances';
2
2
  import type { UsingClient } from '../../commands';
3
3
  import { type ObjectToLower } from '../../common';
4
- import type { StageInstances } from '../../cache/resources/stage-instances';
4
+ import type { GatewayStageInstanceCreateDispatchData, GatewayStageInstanceDeleteDispatchData, GatewayStageInstanceUpdateDispatchData } from '../../types';
5
5
  export declare const STAGE_INSTANCE_CREATE: (_self: UsingClient, data: GatewayStageInstanceCreateDispatchData) => {
6
6
  id: string;
7
7
  guildId: string;
@@ -0,0 +1,35 @@
1
+ import type { UsingClient } from '../../commands';
2
+ import type { APISubscription } from '../../types';
3
+ export declare const SUBSCRIPTION_CREATE: (_: UsingClient, data: APISubscription) => {
4
+ id: string;
5
+ userId: string;
6
+ skuIds: string[];
7
+ entitlementsIds: string[];
8
+ currentPeriodStart: string;
9
+ currentPeriodEnd: string;
10
+ status: import("../../types").SubscriptionStatus;
11
+ canceledAt: string | null;
12
+ country?: string | undefined;
13
+ };
14
+ export declare const SUBSCRIPTION_UPDATE: (_: UsingClient, data: APISubscription) => {
15
+ id: string;
16
+ userId: string;
17
+ skuIds: string[];
18
+ entitlementsIds: string[];
19
+ currentPeriodStart: string;
20
+ currentPeriodEnd: string;
21
+ status: import("../../types").SubscriptionStatus;
22
+ canceledAt: string | null;
23
+ country?: string | undefined;
24
+ };
25
+ export declare const SUBSCRIPTION_DELETE: (_: UsingClient, data: APISubscription) => {
26
+ id: string;
27
+ userId: string;
28
+ skuIds: string[];
29
+ entitlementsIds: string[];
30
+ currentPeriodStart: string;
31
+ currentPeriodEnd: string;
32
+ status: import("../../types").SubscriptionStatus;
33
+ canceledAt: string | null;
34
+ country?: string | undefined;
35
+ };
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SUBSCRIPTION_DELETE = exports.SUBSCRIPTION_UPDATE = exports.SUBSCRIPTION_CREATE = void 0;
4
+ const common_1 = require("../../common");
5
+ const SUBSCRIPTION_CREATE = (_, data) => {
6
+ return (0, common_1.toCamelCase)(data);
7
+ };
8
+ exports.SUBSCRIPTION_CREATE = SUBSCRIPTION_CREATE;
9
+ const SUBSCRIPTION_UPDATE = (_, data) => {
10
+ return (0, common_1.toCamelCase)(data);
11
+ };
12
+ exports.SUBSCRIPTION_UPDATE = SUBSCRIPTION_UPDATE;
13
+ const SUBSCRIPTION_DELETE = (_, data) => {
14
+ return (0, common_1.toCamelCase)(data);
15
+ };
16
+ exports.SUBSCRIPTION_DELETE = SUBSCRIPTION_DELETE;
@@ -1,6 +1,6 @@
1
- import type { GatewayThreadCreateDispatchData, GatewayThreadDeleteDispatchData, GatewayThreadListSyncDispatchData, GatewayThreadMemberUpdateDispatchData, GatewayThreadMembersUpdateDispatchData, GatewayThreadUpdateDispatchData } from '../../types';
2
- import type { UsingClient } from '../../commands';
3
1
  import { type ThreadChannelStructure } from '../../client/transformers';
2
+ import type { UsingClient } from '../../commands';
3
+ import type { GatewayThreadCreateDispatchData, GatewayThreadDeleteDispatchData, GatewayThreadListSyncDispatchData, GatewayThreadMemberUpdateDispatchData, GatewayThreadMembersUpdateDispatchData, GatewayThreadUpdateDispatchData } from '../../types';
4
4
  export declare const THREAD_CREATE: (self: UsingClient, data: GatewayThreadCreateDispatchData) => import("../..").ThreadChannel;
5
5
  export declare const THREAD_DELETE: (self: UsingClient, data: GatewayThreadDeleteDispatchData) => import("../..").ThreadChannel;
6
6
  export declare const THREAD_LIST_SYNC: (_self: UsingClient, data: GatewayThreadListSyncDispatchData) => {
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.THREAD_UPDATE = exports.THREAD_MEMBERS_UPDATE = exports.THREAD_MEMBER_UPDATE = exports.THREAD_LIST_SYNC = exports.THREAD_DELETE = exports.THREAD_CREATE = void 0;
4
- const common_1 = require("../../common");
5
4
  const transformers_1 = require("../../client/transformers");
5
+ const common_1 = require("../../common");
6
6
  const THREAD_CREATE = (self, data) => {
7
7
  return transformers_1.Transformers.ThreadChannel(self, data);
8
8
  };
@@ -24,6 +24,6 @@ const THREAD_MEMBERS_UPDATE = (_self, data) => {
24
24
  };
25
25
  exports.THREAD_MEMBERS_UPDATE = THREAD_MEMBERS_UPDATE;
26
26
  const THREAD_UPDATE = async (self, data) => {
27
- return [transformers_1.Transformers.ThreadChannel(self, data), await self.cache.threads?.get(data.id)];
27
+ return [transformers_1.Transformers.ThreadChannel(self, data), (await self.cache.channels?.get(data.id))];
28
28
  };
29
29
  exports.THREAD_UPDATE = THREAD_UPDATE;
@@ -1,5 +1,5 @@
1
- import type { GatewayTypingStartDispatchData } from '../../types';
2
1
  import type { UsingClient } from '../../commands';
2
+ import type { GatewayTypingStartDispatchData } from '../../types';
3
3
  export declare const TYPING_START: (self: UsingClient, data: GatewayTypingStartDispatchData) => {
4
4
  channelId: string;
5
5
  guildId?: string | undefined;
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TYPING_START = void 0;
4
- const common_1 = require("../../common");
5
4
  const transformers_1 = require("../../client/transformers");
5
+ const common_1 = require("../../common");
6
6
  const TYPING_START = (self, data) => {
7
7
  return data.member
8
8
  ? {
@@ -1,4 +1,4 @@
1
- import type { GatewayUserUpdateDispatchData } from '../../types';
2
- import type { UsingClient } from '../../commands';
3
1
  import { type UserStructure } from '../../client/transformers';
2
+ import type { UsingClient } from '../../commands';
3
+ import type { GatewayUserUpdateDispatchData } from '../../types';
4
4
  export declare const USER_UPDATE: (self: UsingClient, data: GatewayUserUpdateDispatchData) => Promise<[user: UserStructure, old?: UserStructure]>;
@@ -1,6 +1,6 @@
1
- import type { GatewayVoiceChannelEffectSendDispachData, GatewayVoiceServerUpdateDispatchData, GatewayVoiceStateUpdateDispatchData } from '../../types';
2
- import type { UsingClient } from '../../commands';
3
1
  import { type VoiceStateStructure } from '../../client/transformers';
2
+ import type { UsingClient } from '../../commands';
3
+ import type { GatewayVoiceChannelEffectSendDispachData, GatewayVoiceServerUpdateDispatchData, GatewayVoiceStateUpdateDispatchData } from '../../types';
4
4
  export declare const VOICE_SERVER_UPDATE: (_self: UsingClient, data: GatewayVoiceServerUpdateDispatchData) => {
5
5
  token: string;
6
6
  guildId: string;
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VOICE_CHANNEL_EFFECT_SEND = exports.VOICE_STATE_UPDATE = exports.VOICE_SERVER_UPDATE = void 0;
4
- const common_1 = require("../../common");
5
4
  const transformers_1 = require("../../client/transformers");
5
+ const common_1 = require("../../common");
6
6
  const VOICE_SERVER_UPDATE = (_self, data) => {
7
7
  return (0, common_1.toCamelCase)(data);
8
8
  };
@@ -1,5 +1,5 @@
1
- import type { GatewayWebhooksUpdateDispatchData } from '../../types';
2
1
  import type { UsingClient } from '../../commands';
2
+ import type { GatewayWebhooksUpdateDispatchData } from '../../types';
3
3
  export declare const WEBHOOKS_UPDATE: (_self: UsingClient, data: GatewayWebhooksUpdateDispatchData) => {
4
4
  guildId: string;
5
5
  channelId: string;
package/lib/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
+ export * from './client';
1
2
  import { type BaseClientOptions, type InternalRuntimeConfig, type InternalRuntimeConfigHTTP, type RuntimeConfig, type RuntimeConfigHTTP } from './client/base';
2
- import type { CustomEventsKeys, ClientNameEvents, ResolveEventParams } from './events';
3
+ import type { ClientNameEvents, CustomEventsKeys, ResolveEventParams } from './events';
3
4
  export { Logger, PermissionStrings, Formatter } from './common';
4
5
  export { Collection, LimitedCollection } from './collection';
5
6
  export * from './api';
@@ -11,7 +12,6 @@ export * from './events';
11
12
  export * from './langs';
12
13
  export { ShardManager, WorkerManager } from './websocket/discord';
13
14
  export * from './structures';
14
- export * from './client';
15
15
  /**
16
16
  * Creates an event with the specified data and run function.
17
17
  *
package/lib/index.js CHANGED
@@ -17,9 +17,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  exports.config = exports.WorkerManager = exports.ShardManager = exports.LimitedCollection = exports.Collection = exports.Formatter = exports.Logger = void 0;
18
18
  exports.createEvent = createEvent;
19
19
  exports.extendContext = extendContext;
20
- const types_1 = require("./types");
20
+ __exportStar(require("./client"), exports);
21
21
  const base_1 = require("./client/base");
22
22
  const common_1 = require("./common");
23
+ const types_1 = require("./types");
23
24
  var common_2 = require("./common");
24
25
  Object.defineProperty(exports, "Logger", { enumerable: true, get: function () { return common_2.Logger; } });
25
26
  Object.defineProperty(exports, "Formatter", { enumerable: true, get: function () { return common_2.Formatter; } });
@@ -41,9 +42,6 @@ Object.defineProperty(exports, "ShardManager", { enumerable: true, get: function
41
42
  Object.defineProperty(exports, "WorkerManager", { enumerable: true, get: function () { return discord_1.WorkerManager; } });
42
43
  //
43
44
  __exportStar(require("./structures"), exports);
44
- //
45
- __exportStar(require("./client"), exports);
46
- ///
47
45
  /**
48
46
  * Creates an event with the specified data and run function.
49
47
  *
@@ -75,7 +73,7 @@ exports.config = {
75
73
  intents: 'intents' in data
76
74
  ? typeof data.intents === 'number'
77
75
  ? data.intents
78
- : data.intents?.reduce((pr, acc) => pr | (typeof acc === 'number' ? acc : types_1.GatewayIntentBits[acc]), 0) ?? 0
76
+ : (data.intents?.reduce((pr, acc) => pr | (typeof acc === 'number' ? acc : types_1.GatewayIntentBits[acc]), 0) ?? 0)
79
77
  : 0,
80
78
  };
81
79
  },
@@ -1,10 +1,10 @@
1
- import { BaseHandler } from '../common';
2
1
  import type { FileLoaded } from '../commands/handler';
2
+ import { BaseHandler } from '../common';
3
3
  import type { LocaleString } from '../types';
4
4
  export declare class LangsHandler extends BaseHandler {
5
5
  values: Partial<Record<string, any>>;
6
6
  private __paths;
7
- protected filter: (path: string) => boolean;
7
+ filter: (path: string) => boolean;
8
8
  defaultLang?: string;
9
9
  aliases: [string, LocaleString[]][];
10
10
  getLocale(locale: string): string;
@@ -1,15 +1,16 @@
1
1
  import type { UsingClient } from '../commands';
2
2
  import type { ObjectToLower, StructPropState, StructStates, ToClass } from '../common/types/util';
3
+ import type { APIGuild, GatewayGuildCreateDispatchData, RESTPatchAPIGuildJSONBody } from '../types';
3
4
  import { AutoModerationRule } from './AutoModerationRule';
5
+ import { GuildBan } from './GuildBan';
4
6
  import { GuildEmoji } from './GuildEmoji';
5
7
  import { GuildMember } from './GuildMember';
6
8
  import { GuildRole } from './GuildRole';
7
9
  import { GuildTemplate } from './GuildTemplate';
8
10
  import { Sticker } from './Sticker';
11
+ import { BaseChannel } from './channels';
9
12
  import { BaseGuild } from './extra/BaseGuild';
10
13
  import type { DiscordBase } from './extra/DiscordBase';
11
- import { GuildBan } from './GuildBan';
12
- import type { APIGuild, GatewayGuildCreateDispatchData, RESTPatchAPIGuildJSONBody } from '../types';
13
14
  export interface Guild extends ObjectToLower<Omit<APIGuild, 'stickers' | 'emojis' | 'roles'>>, DiscordBase {
14
15
  }
15
16
  declare const Guild_base: ToClass<Omit<BaseGuild, "id" | "name" | "description" | "icon" | "splash" | "banner" | "features" | "welcomeScreen" | "verificationLevel" | "vanityUrlCode">, Guild<"api">>;
@@ -43,11 +44,13 @@ export declare class Guild<State extends StructStates = 'api'> extends Guild_bas
43
44
  members: {
44
45
  resolve: (resolve: import("../common").GuildMemberResolvable) => Promise<GuildMember | undefined>;
45
46
  search: (query?: import("../types").RESTGetAPIGuildMembersSearchQuery) => Promise<GuildMember[]>;
46
- unban: (id: string, body?: import("../types").RESTPutAPIGuildBanJSONBody, reason?: string) => Promise<void>;
47
+ unban: (id: string, reason?: string) => Promise<void>;
47
48
  ban: (id: string, body?: import("../types").RESTPutAPIGuildBanJSONBody, reason?: string) => Promise<void>;
48
49
  kick: (id: string, reason?: string) => Promise<void>;
49
50
  edit: (id: string, body: import("../types").RESTPatchAPIGuildMemberJSONBody, reason?: string) => Promise<GuildMember>;
50
51
  add: (id: string, body: import("../types").RESTPutAPIGuildMemberJSONBody) => Promise<GuildMember | undefined>;
52
+ addRole: (memberId: string, id: string) => Promise<never>;
53
+ removeRole: (memberId: string, id: string) => Promise<never>;
51
54
  fetch: (memberId: string, force?: boolean) => Promise<GuildMember>;
52
55
  list: (query?: import("../types").RESTGetAPIGuildMembersQuery, force?: boolean) => Promise<GuildMember[]>;
53
56
  };
@@ -67,7 +70,7 @@ export declare class Guild<State extends StructStates = 'api'> extends Guild_bas
67
70
  };
68
71
  channels: {
69
72
  list: (force?: boolean) => Promise<import("./channels").AllChannels[]>;
70
- fetch: (id: string, force?: boolean) => Promise<import("./channels").AllChannels>;
73
+ fetch: (id: string, force?: boolean) => Promise<import("../types").APIGuildCategoryChannel | import("../types").APIGuildStageVoiceChannel | import("../types").APIGuildVoiceChannel | import("../types").APINewsChannel | import("../types").APITextChannel | BaseChannel<import("../types").ChannelType> | import("./channels").DMChannel | import("./channels").CategoryChannel>;
71
74
  create: (body: import("../types").RESTPostAPIGuildChannelJSONBody) => Promise<import("./channels").AllChannels>;
72
75
  delete: (id: string, reason?: string) => Promise<import("./channels").AllChannels>;
73
76
  edit: (id: string, body: import("../types").RESTPatchAPIChannelJSONBody, reason?: string) => Promise<import("./channels").AllChannels>;
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Guild = void 0;
4
4
  const AutoModerationRule_1 = require("./AutoModerationRule");
5
+ const GuildBan_1 = require("./GuildBan");
5
6
  const GuildEmoji_1 = require("./GuildEmoji");
6
7
  const GuildMember_1 = require("./GuildMember");
7
8
  const GuildRole_1 = require("./GuildRole");
@@ -9,7 +10,6 @@ const GuildTemplate_1 = require("./GuildTemplate");
9
10
  const Sticker_1 = require("./Sticker");
10
11
  const channels_1 = require("./channels");
11
12
  const BaseGuild_1 = require("./extra/BaseGuild");
12
- const GuildBan_1 = require("./GuildBan");
13
13
  class Guild extends BaseGuild_1.BaseGuild {
14
14
  joinedAt;
15
15
  memberCount;
@@ -1,8 +1,8 @@
1
1
  import type { UsingClient } from '../commands';
2
2
  import { type MethodContext, type ObjectToLower } from '../common';
3
- import { DiscordBase } from './extra/DiscordBase';
4
3
  import type { BanShorter } from '../common/shorters/bans';
5
4
  import type { APIBan, RESTGetAPIGuildBansQuery } from '../types';
5
+ import { DiscordBase } from './extra/DiscordBase';
6
6
  export interface GuildBan extends DiscordBase, ObjectToLower<Omit<APIBan, 'id'>> {
7
7
  }
8
8
  export declare class GuildBan extends DiscordBase {
@@ -1,10 +1,10 @@
1
1
  import { DiscordBase } from './extra/DiscordBase';
2
2
  export type GuildMemberData = APIGuildMember | Omit<APIGuildMember, 'user'> | GatewayGuildMemberUpdateDispatchData | GatewayGuildMemberAddDispatchData | APIInteractionDataResolvedGuildMember;
3
- import type { APIGuildMember, GatewayGuildMemberUpdateDispatchData, GatewayGuildMemberAddDispatchData, APIInteractionDataResolvedGuildMember, RESTPutAPIGuildBanJSONBody, RESTPatchAPIGuildMemberJSONBody, RESTGetAPIGuildMembersSearchQuery, RESTPutAPIGuildMemberJSONBody, RESTGetAPIGuildMembersQuery, APIUser } from '../types';
3
+ import { type UserStructure } from '../client/transformers';
4
4
  import type { UsingClient } from '../commands';
5
+ import { type GuildMemberResolvable, type ImageOptions, type MessageCreateBodyRequest, type MethodContext, type ObjectToLower, type ToClass } from '../common';
6
+ import type { APIGuildMember, APIInteractionDataResolvedGuildMember, APIUser, GatewayGuildMemberAddDispatchData, GatewayGuildMemberUpdateDispatchData, RESTGetAPIGuildMembersQuery, RESTGetAPIGuildMembersSearchQuery, RESTPatchAPIGuildMemberJSONBody, RESTPutAPIGuildBanJSONBody, RESTPutAPIGuildMemberJSONBody } from '../types';
5
7
  import { PermissionsBitField } from './extra/Permissions';
6
- import { type MessageCreateBodyRequest, type ObjectToLower, type ToClass, type ImageOptions, type MethodContext, type GuildMemberResolvable } from '../common';
7
- import { type UserStructure } from '../client/transformers';
8
8
  export interface BaseGuildMember extends DiscordBase, ObjectToLower<Omit<APIGuildMember, 'user' | 'roles'>> {
9
9
  }
10
10
  export declare class BaseGuildMember extends DiscordBase {
@@ -35,7 +35,7 @@ export declare class BaseGuildMember extends DiscordBase {
35
35
  get roles(): {
36
36
  keys: string[];
37
37
  list: (force?: boolean) => Promise<import("./GuildRole").GuildRole[]>;
38
- add: (id: string) => void;
38
+ add: (id: string) => Promise<never>;
39
39
  remove: (id: string) => Promise<never>;
40
40
  permissions: (force?: boolean) => Promise<PermissionsBitField>;
41
41
  sorted: (force?: boolean) => Promise<import("./GuildRole").GuildRole[]>;
@@ -46,11 +46,13 @@ export declare class BaseGuildMember extends DiscordBase {
46
46
  }>): {
47
47
  resolve: (resolve: GuildMemberResolvable) => Promise<GuildMember | undefined>;
48
48
  search: (query?: RESTGetAPIGuildMembersSearchQuery) => Promise<GuildMember[]>;
49
- unban: (id: string, body?: RESTPutAPIGuildBanJSONBody, reason?: string) => Promise<void>;
49
+ unban: (id: string, reason?: string) => Promise<void>;
50
50
  ban: (id: string, body?: RESTPutAPIGuildBanJSONBody, reason?: string) => Promise<void>;
51
51
  kick: (id: string, reason?: string) => Promise<void>;
52
52
  edit: (id: string, body: RESTPatchAPIGuildMemberJSONBody, reason?: string) => Promise<GuildMember>;
53
53
  add: (id: string, body: RESTPutAPIGuildMemberJSONBody) => Promise<GuildMember | undefined>;
54
+ addRole: (memberId: string, id: string) => Promise<never>;
55
+ removeRole: (memberId: string, id: string) => Promise<never>;
54
56
  fetch: (memberId: string, force?: boolean) => Promise<GuildMember>;
55
57
  list: (query?: RESTGetAPIGuildMembersQuery, force?: boolean) => Promise<GuildMember[]>;
56
58
  };
@@ -2,9 +2,9 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.InteractionGuildMember = exports.UnavailableMember = exports.GuildMember = exports.BaseGuildMember = void 0;
4
4
  const DiscordBase_1 = require("./extra/DiscordBase");
5
- const Permissions_1 = require("./extra/Permissions");
6
- const common_1 = require("../common");
7
5
  const transformers_1 = require("../client/transformers");
6
+ const common_1 = require("../common");
7
+ const Permissions_1 = require("./extra/Permissions");
8
8
  class BaseGuildMember extends DiscordBase_1.DiscordBase {
9
9
  guildId;
10
10
  _roles;
@@ -76,11 +76,13 @@ class BaseGuildMember extends DiscordBase_1.DiscordBase {
76
76
  return {
77
77
  resolve: (resolve) => client.members.resolve(guildId, resolve),
78
78
  search: (query) => client.members.search(guildId, query),
79
- unban: (id, body, reason) => client.members.unban(guildId, id, body, reason),
79
+ unban: (id, reason) => client.members.unban(guildId, id, reason),
80
80
  ban: (id, body, reason) => client.members.ban(guildId, id, body, reason),
81
81
  kick: (id, reason) => client.members.kick(guildId, id, reason),
82
82
  edit: (id, body, reason) => client.members.edit(guildId, id, body, reason),
83
83
  add: (id, body) => client.members.add(guildId, id, body),
84
+ addRole: (memberId, id) => client.members.addRole(guildId, memberId, id),
85
+ removeRole: (memberId, id) => client.members.removeRole(guildId, memberId, id),
84
86
  fetch: (memberId, force = false) => client.members.fetch(guildId, memberId, force),
85
87
  list: (query, force = false) => client.members.list(guildId, query, force),
86
88
  };
@@ -1,6 +1,6 @@
1
- import type { APIRole, RESTPatchAPIGuildRoleJSONBody, RESTPatchAPIGuildRolePositionsJSONBody, RESTPostAPIGuildRoleJSONBody } from '../types';
2
1
  import type { UsingClient } from '../commands';
3
2
  import { type MethodContext, type ObjectToLower } from '../common';
3
+ import type { APIRole, RESTPatchAPIGuildRoleJSONBody, RESTPatchAPIGuildRolePositionsJSONBody, RESTPostAPIGuildRoleJSONBody } from '../types';
4
4
  import { DiscordBase } from './extra/DiscordBase';
5
5
  import { PermissionsBitField } from './extra/Permissions';
6
6
  export interface GuildRole extends DiscordBase, ObjectToLower<Omit<APIRole, 'permissions'>> {
@@ -1,6 +1,6 @@
1
- import type { APITemplate, RESTPatchAPIGuildTemplateJSONBody, RESTPostAPIGuildTemplatesJSONBody } from '../types';
2
1
  import type { UsingClient } from '../commands';
3
2
  import type { MethodContext, ObjectToLower } from '../common';
3
+ import type { APITemplate, RESTPatchAPIGuildTemplateJSONBody, RESTPostAPIGuildTemplatesJSONBody } from '../types';
4
4
  import { Base } from './extra/Base';
5
5
  export interface GuildTemplate extends Base, ObjectToLower<APITemplate> {
6
6
  }