seyfert 4.4.1 → 5.0.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 (231) hide show
  1. package/README.md +7 -1
  2. package/lib/api/Routes/cdn.d.ts +2 -2
  3. package/lib/api/Routes/guilds.d.ts +2 -2
  4. package/lib/api/Routes/invites.d.ts +2 -2
  5. package/lib/api/api.d.ts +20 -8
  6. package/lib/api/api.js +198 -44
  7. package/lib/api/shared.d.ts +30 -1
  8. package/lib/api/utils/constants.d.ts +1 -1
  9. package/lib/api/utils/constants.js +1 -1
  10. package/lib/api/utils/utils.d.ts +2 -1
  11. package/lib/api/utils/utils.js +1 -1
  12. package/lib/builders/Attachment.d.ts +1 -1
  13. package/lib/builders/Attachment.js +30 -8
  14. package/lib/builders/MediaGallery.d.ts +2 -2
  15. package/lib/builders/MediaGallery.js +10 -0
  16. package/lib/builders/Modal.d.ts +18 -8
  17. package/lib/builders/Modal.js +36 -7
  18. package/lib/builders/Poll.js +18 -0
  19. package/lib/builders/RadioGroup.d.ts +4 -3
  20. package/lib/builders/RadioGroup.js +24 -3
  21. package/lib/builders/SelectMenu.d.ts +8 -6
  22. package/lib/builders/SelectMenu.js +24 -3
  23. package/lib/builders/types.d.ts +3 -2
  24. package/lib/cache/adapters/default.d.ts +1 -1
  25. package/lib/cache/adapters/default.js +23 -26
  26. package/lib/cache/adapters/limited.d.ts +1 -0
  27. package/lib/cache/adapters/limited.js +47 -33
  28. package/lib/cache/index.d.ts +19 -25
  29. package/lib/cache/index.js +58 -6
  30. package/lib/cache/resources/bans.d.ts +1 -1
  31. package/lib/cache/resources/bans.js +4 -4
  32. package/lib/cache/resources/channels.d.ts +1 -1
  33. package/lib/cache/resources/channels.js +4 -4
  34. package/lib/cache/resources/default/base.d.ts +1 -1
  35. package/lib/cache/resources/default/base.js +8 -8
  36. package/lib/cache/resources/default/guild-based.d.ts +5 -5
  37. package/lib/cache/resources/default/guild-based.js +29 -16
  38. package/lib/cache/resources/default/guild-related.d.ts +5 -5
  39. package/lib/cache/resources/default/guild-related.js +14 -14
  40. package/lib/cache/resources/emojis.d.ts +1 -1
  41. package/lib/cache/resources/emojis.js +4 -4
  42. package/lib/cache/resources/guilds.js +28 -15
  43. package/lib/cache/resources/members.d.ts +1 -1
  44. package/lib/cache/resources/members.js +6 -6
  45. package/lib/cache/resources/messages.d.ts +7 -2
  46. package/lib/cache/resources/messages.js +43 -20
  47. package/lib/cache/resources/overwrites.d.ts +1 -1
  48. package/lib/cache/resources/overwrites.js +5 -8
  49. package/lib/cache/resources/roles.d.ts +1 -1
  50. package/lib/cache/resources/roles.js +4 -4
  51. package/lib/cache/resources/stickers.d.ts +1 -1
  52. package/lib/cache/resources/stickers.js +4 -4
  53. package/lib/cache/resources/users.js +4 -4
  54. package/lib/cache/resources/voice-states.d.ts +1 -1
  55. package/lib/cache/resources/voice-states.js +4 -4
  56. package/lib/client/base.d.ts +83 -24
  57. package/lib/client/base.js +594 -39
  58. package/lib/client/client.d.ts +29 -4
  59. package/lib/client/client.js +38 -13
  60. package/lib/client/collectors.d.ts +9 -8
  61. package/lib/client/collectors.js +19 -52
  62. package/lib/client/httpclient.d.ts +3 -0
  63. package/lib/client/index.d.ts +3 -1
  64. package/lib/client/index.js +4 -0
  65. package/lib/client/intents.d.ts +3 -0
  66. package/lib/client/intents.js +9 -0
  67. package/lib/client/plugins/api.d.ts +4 -0
  68. package/lib/client/plugins/api.js +550 -0
  69. package/lib/client/plugins/errors.d.ts +25 -0
  70. package/lib/client/plugins/errors.js +79 -0
  71. package/lib/client/plugins/order.d.ts +10 -0
  72. package/lib/client/plugins/order.js +32 -0
  73. package/lib/client/plugins/registry.d.ts +273 -0
  74. package/lib/client/plugins/registry.js +868 -0
  75. package/lib/client/plugins/shared.d.ts +23 -0
  76. package/lib/client/plugins/shared.js +193 -0
  77. package/lib/client/plugins/types.d.ts +398 -0
  78. package/lib/client/plugins/types.js +8 -0
  79. package/lib/client/plugins.d.ts +78 -0
  80. package/lib/client/plugins.js +558 -0
  81. package/lib/client/transformers.d.ts +33 -33
  82. package/lib/client/workerclient.d.ts +11 -2
  83. package/lib/client/workerclient.js +33 -22
  84. package/lib/collection.d.ts +10 -8
  85. package/lib/collection.js +19 -25
  86. package/lib/commands/applications/chat.d.ts +20 -18
  87. package/lib/commands/applications/chat.js +39 -14
  88. package/lib/commands/applications/chatcontext.d.ts +23 -15
  89. package/lib/commands/applications/chatcontext.js +23 -2
  90. package/lib/commands/applications/entryPoint.d.ts +4 -3
  91. package/lib/commands/applications/entryPoint.js +1 -1
  92. package/lib/commands/applications/entrycontext.d.ts +7 -9
  93. package/lib/commands/applications/entrycontext.js +3 -1
  94. package/lib/commands/applications/menu.d.ts +4 -3
  95. package/lib/commands/applications/menucontext.d.ts +7 -9
  96. package/lib/commands/applications/menucontext.js +3 -1
  97. package/lib/commands/applications/options.d.ts +23 -23
  98. package/lib/commands/applications/shared.d.ts +39 -17
  99. package/lib/commands/decorators.d.ts +50 -38
  100. package/lib/commands/decorators.js +15 -5
  101. package/lib/commands/handle.d.ts +19 -8
  102. package/lib/commands/handle.js +224 -143
  103. package/lib/commands/handler.d.ts +21 -8
  104. package/lib/commands/handler.js +157 -69
  105. package/lib/commands/index.d.ts +1 -0
  106. package/lib/commands/optionresolver.d.ts +2 -2
  107. package/lib/common/it/colors.js +12 -2
  108. package/lib/common/it/error.d.ts +9 -0
  109. package/lib/common/it/error.js +8 -0
  110. package/lib/common/it/fake-promise.d.ts +4 -0
  111. package/lib/common/it/fake-promise.js +10 -0
  112. package/lib/common/it/formatter.d.ts +14 -11
  113. package/lib/common/it/formatter.js +4 -3
  114. package/lib/common/it/logger.d.ts +7 -1
  115. package/lib/common/it/logger.js +24 -6
  116. package/lib/common/it/utils.d.ts +6 -8
  117. package/lib/common/it/utils.js +44 -42
  118. package/lib/common/shorters/application.d.ts +3 -3
  119. package/lib/common/shorters/application.js +3 -2
  120. package/lib/common/shorters/bans.d.ts +8 -4
  121. package/lib/common/shorters/bans.js +13 -5
  122. package/lib/common/shorters/channels.d.ts +4 -4
  123. package/lib/common/shorters/channels.js +4 -4
  124. package/lib/common/shorters/emojis.js +1 -0
  125. package/lib/common/shorters/guilds.d.ts +8 -8
  126. package/lib/common/shorters/guilds.js +14 -31
  127. package/lib/common/shorters/interaction.d.ts +1 -1
  128. package/lib/common/shorters/invites.d.ts +201 -201
  129. package/lib/common/shorters/members.d.ts +7 -7
  130. package/lib/common/shorters/members.js +13 -14
  131. package/lib/common/shorters/messages.d.ts +2 -2
  132. package/lib/common/shorters/soundboard.d.ts +5 -5
  133. package/lib/common/shorters/users.d.ts +1 -1
  134. package/lib/common/shorters/webhook.d.ts +3 -2
  135. package/lib/common/shorters/webhook.js +0 -7
  136. package/lib/common/types/options.d.ts +4 -0
  137. package/lib/common/types/util.d.ts +8 -0
  138. package/lib/common/types/write.d.ts +2 -1
  139. package/lib/components/BaseSelectMenuComponent.d.ts +1 -1
  140. package/lib/components/BaseSelectMenuComponent.js +1 -1
  141. package/lib/components/ButtonComponent.d.ts +3 -3
  142. package/lib/components/ChannelSelectMenuComponent.d.ts +2 -2
  143. package/lib/components/File.d.ts +1 -1
  144. package/lib/components/MediaGallery.d.ts +1 -1
  145. package/lib/components/MentionableSelectMenuComponent.d.ts +1 -1
  146. package/lib/components/RoleSelectMenuComponent.d.ts +1 -1
  147. package/lib/components/Separator.d.ts +1 -1
  148. package/lib/components/StringSelectMenuComponent.d.ts +1 -1
  149. package/lib/components/TextInputComponent.d.ts +1 -1
  150. package/lib/components/Thumbnail.d.ts +1 -1
  151. package/lib/components/UserSelectMenuComponent.d.ts +1 -1
  152. package/lib/components/componentcommand.d.ts +8 -7
  153. package/lib/components/componentcontext.d.ts +24 -36
  154. package/lib/components/componentcontext.js +7 -17
  155. package/lib/components/handler.d.ts +17 -7
  156. package/lib/components/handler.js +108 -49
  157. package/lib/components/index.d.ts +1 -0
  158. package/lib/components/index.js +1 -0
  159. package/lib/components/interactioncontext.d.ts +45 -0
  160. package/lib/components/interactioncontext.js +93 -0
  161. package/lib/components/modalcommand.d.ts +5 -4
  162. package/lib/components/modalcontext.d.ts +39 -20
  163. package/lib/components/modalcontext.js +59 -6
  164. package/lib/events/event.d.ts +9 -3
  165. package/lib/events/handler.d.ts +51 -6
  166. package/lib/events/handler.js +165 -36
  167. package/lib/events/hooks/application_command.d.ts +1 -1
  168. package/lib/events/hooks/auto_moderation.d.ts +2 -2
  169. package/lib/events/hooks/guild.d.ts +150 -150
  170. package/lib/events/hooks/interactions.d.ts +1 -1
  171. package/lib/events/hooks/invite.d.ts +20 -20
  172. package/lib/events/hooks/message.d.ts +27 -27
  173. package/lib/events/hooks/presence.d.ts +11 -11
  174. package/lib/events/hooks/soundboard.d.ts +6 -6
  175. package/lib/events/hooks/stage.d.ts +2 -2
  176. package/lib/events/hooks/subscriptions.d.ts +3 -3
  177. package/lib/events/hooks/thread.d.ts +30 -30
  178. package/lib/events/hooks/voice.d.ts +3 -4
  179. package/lib/events/hooks/voice.js +2 -1
  180. package/lib/events/utils.d.ts +4 -0
  181. package/lib/events/utils.js +59 -0
  182. package/lib/index.d.ts +9 -4
  183. package/lib/index.js +14 -8
  184. package/lib/langs/handler.d.ts +14 -11
  185. package/lib/langs/handler.js +46 -9
  186. package/lib/langs/router.d.ts +10 -3
  187. package/lib/structures/Application.d.ts +1 -1
  188. package/lib/structures/Emoji.d.ts +3 -3
  189. package/lib/structures/Emoji.js +2 -2
  190. package/lib/structures/Guild.d.ts +154 -154
  191. package/lib/structures/GuildBan.d.ts +4 -4
  192. package/lib/structures/GuildBan.js +3 -3
  193. package/lib/structures/GuildMember.d.ts +7 -7
  194. package/lib/structures/GuildMember.js +28 -7
  195. package/lib/structures/GuildRole.d.ts +1 -1
  196. package/lib/structures/GuildRole.js +2 -2
  197. package/lib/structures/Interaction.d.ts +11 -9
  198. package/lib/structures/Interaction.js +33 -12
  199. package/lib/structures/Message.d.ts +21 -14
  200. package/lib/structures/Message.js +29 -14
  201. package/lib/structures/User.d.ts +1 -1
  202. package/lib/structures/VoiceState.d.ts +4 -0
  203. package/lib/structures/VoiceState.js +13 -1
  204. package/lib/structures/Webhook.d.ts +9 -1
  205. package/lib/structures/Webhook.js +4 -1
  206. package/lib/structures/channels.d.ts +148 -134
  207. package/lib/structures/channels.js +27 -26
  208. package/lib/structures/extra/BitField.d.ts +4 -4
  209. package/lib/structures/extra/BitField.js +20 -4
  210. package/lib/structures/extra/DiscordBase.js +1 -1
  211. package/lib/structures/extra/Permissions.d.ts +2 -4
  212. package/lib/structures/extra/Permissions.js +1 -17
  213. package/lib/types/payloads/_interactions/responses.d.ts +2 -2
  214. package/lib/types/payloads/components.d.ts +4 -4
  215. package/lib/websocket/SharedTypes.d.ts +4 -4
  216. package/lib/websocket/constants/index.d.ts +1 -1
  217. package/lib/websocket/constants/index.js +3 -2
  218. package/lib/websocket/discord/events/memberUpdate.js +2 -2
  219. package/lib/websocket/discord/heartbeater.d.ts +1 -0
  220. package/lib/websocket/discord/heartbeater.js +7 -0
  221. package/lib/websocket/discord/shard.d.ts +2 -2
  222. package/lib/websocket/discord/shard.js +16 -14
  223. package/lib/websocket/discord/sharder.d.ts +8 -7
  224. package/lib/websocket/discord/sharder.js +26 -6
  225. package/lib/websocket/discord/shared.d.ts +19 -6
  226. package/lib/websocket/discord/socket/custom.js +5 -0
  227. package/lib/websocket/discord/worker.d.ts +1 -0
  228. package/lib/websocket/discord/worker.js +2 -0
  229. package/lib/websocket/discord/workermanager.d.ts +25 -11
  230. package/lib/websocket/discord/workermanager.js +41 -10
  231. package/package.json +13 -17
@@ -1,8 +1,14 @@
1
- import { Collection, type RawFile, type ReturnCache } from '..';
1
+ import type { RawFile } from '../api/shared';
2
+ import type { ReturnCache } from '../cache';
2
3
  import type { Overwrites } from '../cache/resources/overwrites';
3
- import { type BaseChannelStructure, type BaseGuildChannelStructure, type CategoryChannelStructure, type DirectoryChannelStructure, type DMChannelStructure, type ForumChannelStructure, type GuildMemberStructure, type GuildStructure, type MediaChannelStructure, type MessageStructure, type NewsChannelStructure, type StageChannelStructure, type TextGuildChannelStructure, type ThreadChannelStructure, type UserStructure, type VoiceChannelStructure, type VoiceStateStructure, type WebhookStructure } from '../client';
4
+ import { type BaseChannelStructure, type BaseGuildChannelStructure, type CategoryChannelStructure, type DirectoryChannelStructure, type DMChannelStructure, type ForumChannelStructure, type GuildMemberStructure, type GuildStructure, type MediaChannelStructure, type MessageStructure, type NewsChannelStructure, type StageChannelStructure, type TextGuildChannelStructure, type ThreadChannelStructure, type UserStructure, type VoiceChannelStructure, type VoiceStateStructure, type WebhookStructure } from '../client/transformers';
4
5
  import type { SeyfertChannelMap, UsingClient } from '../commands';
5
- import { type ChannelShorterOverwriteBody, type CreateInviteFromChannel, type EmojiResolvable, type MessageCreateBodyRequest, type MessageUpdateBodyRequest, type MethodContext, type ObjectToLower, type StringToNumber, type ThreadOnlyCreateBodyRequest, type ToClass } from '../common';
6
+ import type { ChannelShorterOverwriteBody } from '../common/shorters/channels';
7
+ import type { CreateInviteFromChannel } from '../common/shorters/invites';
8
+ import type { MethodContext } from '../common/types/options';
9
+ import type { EmojiResolvable } from '../common/types/resolvables';
10
+ import type { ObjectToLower, StringToNumber, ToClass } from '../common/types/util';
11
+ import type { MessageCreateBodyRequest, MessageUpdateBodyRequest, ThreadOnlyCreateBodyRequest } from '../common/types/write';
6
12
  import { type APIChannelBase, type APIDMChannel, type APIGuildCategoryChannel, type APIGuildChannel, type APIGuildForumChannel, type APIGuildForumDefaultReactionEmoji, type APIGuildForumTag, type APIGuildMediaChannel, type APIGuildStageVoiceChannel, type APIGuildVoiceChannel, type APINewsChannel, type APITextChannel, type APIThreadChannel, ChannelType, type RESTGetAPIChannelMessageReactionUsersQuery, type RESTGetAPIChannelMessagesPinsQuery, type RESTGetAPIChannelMessagesQuery, type RESTPatchAPIChannelJSONBody, type RESTPatchAPIGuildChannelPositionsJSONBody, type RESTPostAPIChannelWebhookJSONBody, type RESTPostAPIGuildChannelJSONBody, type SortOrderType, type ThreadAutoArchiveDuration, VideoQualityMode } from '../types';
7
13
  import { DiscordBase } from './extra/DiscordBase';
8
14
  import type { GuildMember } from './GuildMember';
@@ -13,10 +19,10 @@ export declare class BaseNoEditableChannel<T extends ChannelType> extends Discor
13
19
  static __intent__(id: '@me'): 'DirectMessages';
14
20
  static __intent__(id: string): 'DirectMessages' | 'Guilds';
15
21
  /** The URL to the channel */
16
- get url(): string;
22
+ get url(): `https://discord.com/channels/${string}/${string}`;
17
23
  fetch(mode?: 'rest' | 'flow'): Promise<AllChannels>;
18
24
  fetch(mode: 'cache'): ReturnCache<AllChannels | undefined>;
19
- delete(reason?: string): Promise<AllChannels>;
25
+ delete(reason?: string): Promise<this>;
20
26
  toString(): `<#${string}>`;
21
27
  isStage(): this is StageChannel;
22
28
  isMedia(): this is MediaChannel;
@@ -30,6 +36,8 @@ export declare class BaseNoEditableChannel<T extends ChannelType> extends Discor
30
36
  isNews(): this is NewsChannel;
31
37
  isTextable(): this is AllTextableChannels;
32
38
  isGuildTextable(): this is AllGuildTextableChannels;
39
+ isNamed(): this is AllNamedChannels;
40
+ isGuild(): this is AllGuildChannels | BaseGuildChannelStructure;
33
41
  isThreadOnly(): this is ForumChannel | MediaChannel;
34
42
  is<T extends (keyof IChannelTypes)[]>(channelTypes: T): this is IChannelTypes[T[number]];
35
43
  static allMethods(ctx: MethodContext<{
@@ -82,11 +90,11 @@ export declare class BaseGuildChannel extends BaseChannel<ChannelType> {
82
90
  icon: string | null;
83
91
  splash: string | null;
84
92
  banner: string | null;
85
- features: import("../types").GuildFeature[];
86
- verificationLevel: import("../types").GuildVerificationLevel;
93
+ features: import("..").GuildFeature[];
94
+ verificationLevel: import("..").GuildVerificationLevel;
87
95
  vanityUrlCode: string | null;
88
96
  premiumSubscriptionCount?: number | undefined;
89
- nsfwLevel: import("../types").GuildNSFWLevel;
97
+ nsfwLevel: import("..").GuildNSFWLevel;
90
98
  } | undefined;
91
99
  channel: {
92
100
  id: string;
@@ -107,14 +115,14 @@ export declare class BaseGuildChannel extends BaseChannel<ChannelType> {
107
115
  locale?: string | undefined;
108
116
  verified?: boolean | undefined;
109
117
  email?: string | null | undefined;
110
- flags?: import("../types").UserFlags | undefined;
111
- premiumType?: import("../types").UserPremiumType | undefined;
112
- publicFlags?: import("../types").UserFlags | undefined;
113
- avatarDecorationData?: import("../types").APIAvatarDecorationData | null | undefined;
114
- collectibles?: import("../types").APICollectibles | null | undefined;
115
- primaryGuild?: import("../types").APIUserPrimaryGuild | null | undefined;
118
+ flags?: import("..").UserFlags | undefined;
119
+ premiumType?: import("..").UserPremiumType | undefined;
120
+ publicFlags?: import("..").UserFlags | undefined;
121
+ avatarDecorationData?: import("..").APIAvatarDecorationData | null | undefined;
122
+ collectibles?: import("..").APICollectibles | null | undefined;
123
+ primaryGuild?: import("..").APIUserPrimaryGuild | null | undefined;
116
124
  } | undefined;
117
- targetType?: import("../types").InviteTargetType | undefined;
125
+ targetType?: import("..").InviteTargetType | undefined;
118
126
  targetUser?: {
119
127
  id: string;
120
128
  username: string;
@@ -129,12 +137,12 @@ export declare class BaseGuildChannel extends BaseChannel<ChannelType> {
129
137
  locale?: string | undefined;
130
138
  verified?: boolean | undefined;
131
139
  email?: string | null | undefined;
132
- flags?: import("../types").UserFlags | undefined;
133
- premiumType?: import("../types").UserPremiumType | undefined;
134
- publicFlags?: import("../types").UserFlags | undefined;
135
- avatarDecorationData?: import("../types").APIAvatarDecorationData | null | undefined;
136
- collectibles?: import("../types").APICollectibles | null | undefined;
137
- primaryGuild?: import("../types").APIUserPrimaryGuild | null | undefined;
140
+ flags?: import("..").UserFlags | undefined;
141
+ premiumType?: import("..").UserPremiumType | undefined;
142
+ publicFlags?: import("..").UserFlags | undefined;
143
+ avatarDecorationData?: import("..").APIAvatarDecorationData | null | undefined;
144
+ collectibles?: import("..").APICollectibles | null | undefined;
145
+ primaryGuild?: import("..").APIUserPrimaryGuild | null | undefined;
138
146
  } | undefined;
139
147
  targetApplication?: {
140
148
  id?: string | undefined;
@@ -144,26 +152,26 @@ export declare class BaseGuildChannel extends BaseChannel<ChannelType> {
144
152
  rpcOrigins?: string[] | undefined;
145
153
  botPublic?: boolean | undefined;
146
154
  botRequireCodeGrant?: boolean | undefined;
147
- bot?: import("../types").APIUser | undefined;
155
+ bot?: import("..").APIUser | undefined;
148
156
  termsOfServiceUrl?: string | undefined;
149
157
  privacyPolicyUrl?: string | undefined;
150
- owner?: import("../types").APIUser | undefined;
158
+ owner?: import("..").APIUser | undefined;
151
159
  verifyKey?: string | undefined;
152
- team?: import("../types").APITeam | null | undefined;
160
+ team?: import("..").APITeam | null | undefined;
153
161
  guildId?: string | undefined;
154
- guild?: import("../types").APIPartialGuild | undefined;
162
+ guild?: import("..").APIPartialGuild | undefined;
155
163
  primarySkuId?: string | undefined;
156
164
  slug?: string | undefined;
157
165
  coverImage?: string | undefined;
158
- flags?: import("../types").ApplicationFlags | undefined;
166
+ flags?: import("..").ApplicationFlags | undefined;
159
167
  approximateGuildCount?: number | undefined;
160
168
  approximateUserInstallCount?: number | undefined;
161
169
  redirectUris?: string[] | undefined;
162
170
  interactionsEndpointUrl?: string | null | undefined;
163
171
  roleConnectionsVerificationUrl?: string | null | undefined;
164
172
  tags?: [string, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?] | undefined;
165
- installParams?: import("../types").APIApplicationInstallParams | undefined;
166
- integrationTypesConfig?: import("../types").APIApplicationIntegrationTypesConfigMap | undefined;
173
+ installParams?: import("..").APIApplicationInstallParams | undefined;
174
+ integrationTypesConfig?: import("..").APIApplicationIntegrationTypesConfigMap | undefined;
167
175
  customInstallUrl?: string | undefined;
168
176
  } | undefined;
169
177
  approximatePresenceCount?: number | undefined;
@@ -179,14 +187,14 @@ export declare class BaseGuildChannel extends BaseChannel<ChannelType> {
179
187
  description?: string | null | undefined;
180
188
  scheduledStartTime: string;
181
189
  scheduledEndTime: string | null;
182
- privacyLevel: import("../types").GuildScheduledEventPrivacyLevel;
183
- status: import("../types").GuildScheduledEventStatus;
184
- entityType: import("../types").GuildScheduledEventEntityType.StageInstance;
190
+ privacyLevel: import("..").GuildScheduledEventPrivacyLevel;
191
+ status: import("..").GuildScheduledEventStatus;
192
+ entityType: import("..").GuildScheduledEventEntityType.StageInstance;
185
193
  entityId: string | null;
186
- creator?: import("../types").APIUser | undefined;
194
+ creator?: import("..").APIUser | undefined;
187
195
  userCount?: number | undefined;
188
196
  image?: string | null | undefined;
189
- recurrenceRule: import("../types").APIGuildScheduledEventRecurrenceRule | null;
197
+ recurrenceRule: import("..").APIGuildScheduledEventRecurrenceRule | null;
190
198
  } | {
191
199
  channelId: string;
192
200
  entityMetadata: null;
@@ -197,14 +205,14 @@ export declare class BaseGuildChannel extends BaseChannel<ChannelType> {
197
205
  description?: string | null | undefined;
198
206
  scheduledStartTime: string;
199
207
  scheduledEndTime: string | null;
200
- privacyLevel: import("../types").GuildScheduledEventPrivacyLevel;
201
- status: import("../types").GuildScheduledEventStatus;
202
- entityType: import("../types").GuildScheduledEventEntityType.Voice;
208
+ privacyLevel: import("..").GuildScheduledEventPrivacyLevel;
209
+ status: import("..").GuildScheduledEventStatus;
210
+ entityType: import("..").GuildScheduledEventEntityType.Voice;
203
211
  entityId: string | null;
204
- creator?: import("../types").APIUser | undefined;
212
+ creator?: import("..").APIUser | undefined;
205
213
  userCount?: number | undefined;
206
214
  image?: string | null | undefined;
207
- recurrenceRule: import("../types").APIGuildScheduledEventRecurrenceRule | null;
215
+ recurrenceRule: import("..").APIGuildScheduledEventRecurrenceRule | null;
208
216
  } | {
209
217
  channelId: null;
210
218
  entityMetadata: {
@@ -217,16 +225,16 @@ export declare class BaseGuildChannel extends BaseChannel<ChannelType> {
217
225
  description?: string | null | undefined;
218
226
  scheduledStartTime: string;
219
227
  scheduledEndTime: string | null;
220
- privacyLevel: import("../types").GuildScheduledEventPrivacyLevel;
221
- status: import("../types").GuildScheduledEventStatus;
222
- entityType: import("../types").GuildScheduledEventEntityType.External;
228
+ privacyLevel: import("..").GuildScheduledEventPrivacyLevel;
229
+ status: import("..").GuildScheduledEventStatus;
230
+ entityType: import("..").GuildScheduledEventEntityType.External;
223
231
  entityId: string | null;
224
- creator?: import("../types").APIUser | undefined;
232
+ creator?: import("..").APIUser | undefined;
225
233
  userCount?: number | undefined;
226
234
  image?: string | null | undefined;
227
- recurrenceRule: import("../types").APIGuildScheduledEventRecurrenceRule | null;
235
+ recurrenceRule: import("..").APIGuildScheduledEventRecurrenceRule | null;
228
236
  } | undefined;
229
- type: import("../types").InviteType;
237
+ type: import("..").InviteType;
230
238
  roles?: {
231
239
  id: string;
232
240
  name: string;
@@ -255,11 +263,11 @@ export declare class BaseGuildChannel extends BaseChannel<ChannelType> {
255
263
  icon: string | null;
256
264
  splash: string | null;
257
265
  banner: string | null;
258
- features: import("../types").GuildFeature[];
259
- verificationLevel: import("../types").GuildVerificationLevel;
266
+ features: import("..").GuildFeature[];
267
+ verificationLevel: import("..").GuildVerificationLevel;
260
268
  vanityUrlCode: string | null;
261
269
  premiumSubscriptionCount?: number | undefined;
262
- nsfwLevel: import("../types").GuildNSFWLevel;
270
+ nsfwLevel: import("..").GuildNSFWLevel;
263
271
  } | undefined;
264
272
  channel: {
265
273
  id: string;
@@ -280,14 +288,14 @@ export declare class BaseGuildChannel extends BaseChannel<ChannelType> {
280
288
  locale?: string | undefined;
281
289
  verified?: boolean | undefined;
282
290
  email?: string | null | undefined;
283
- flags?: import("../types").UserFlags | undefined;
284
- premiumType?: import("../types").UserPremiumType | undefined;
285
- publicFlags?: import("../types").UserFlags | undefined;
286
- avatarDecorationData?: import("../types").APIAvatarDecorationData | null | undefined;
287
- collectibles?: import("../types").APICollectibles | null | undefined;
288
- primaryGuild?: import("../types").APIUserPrimaryGuild | null | undefined;
291
+ flags?: import("..").UserFlags | undefined;
292
+ premiumType?: import("..").UserPremiumType | undefined;
293
+ publicFlags?: import("..").UserFlags | undefined;
294
+ avatarDecorationData?: import("..").APIAvatarDecorationData | null | undefined;
295
+ collectibles?: import("..").APICollectibles | null | undefined;
296
+ primaryGuild?: import("..").APIUserPrimaryGuild | null | undefined;
289
297
  } | undefined;
290
- targetType?: import("../types").InviteTargetType | undefined;
298
+ targetType?: import("..").InviteTargetType | undefined;
291
299
  targetUser?: {
292
300
  id: string;
293
301
  username: string;
@@ -302,12 +310,12 @@ export declare class BaseGuildChannel extends BaseChannel<ChannelType> {
302
310
  locale?: string | undefined;
303
311
  verified?: boolean | undefined;
304
312
  email?: string | null | undefined;
305
- flags?: import("../types").UserFlags | undefined;
306
- premiumType?: import("../types").UserPremiumType | undefined;
307
- publicFlags?: import("../types").UserFlags | undefined;
308
- avatarDecorationData?: import("../types").APIAvatarDecorationData | null | undefined;
309
- collectibles?: import("../types").APICollectibles | null | undefined;
310
- primaryGuild?: import("../types").APIUserPrimaryGuild | null | undefined;
313
+ flags?: import("..").UserFlags | undefined;
314
+ premiumType?: import("..").UserPremiumType | undefined;
315
+ publicFlags?: import("..").UserFlags | undefined;
316
+ avatarDecorationData?: import("..").APIAvatarDecorationData | null | undefined;
317
+ collectibles?: import("..").APICollectibles | null | undefined;
318
+ primaryGuild?: import("..").APIUserPrimaryGuild | null | undefined;
311
319
  } | undefined;
312
320
  targetApplication?: {
313
321
  id?: string | undefined;
@@ -317,26 +325,26 @@ export declare class BaseGuildChannel extends BaseChannel<ChannelType> {
317
325
  rpcOrigins?: string[] | undefined;
318
326
  botPublic?: boolean | undefined;
319
327
  botRequireCodeGrant?: boolean | undefined;
320
- bot?: import("../types").APIUser | undefined;
328
+ bot?: import("..").APIUser | undefined;
321
329
  termsOfServiceUrl?: string | undefined;
322
330
  privacyPolicyUrl?: string | undefined;
323
- owner?: import("../types").APIUser | undefined;
331
+ owner?: import("..").APIUser | undefined;
324
332
  verifyKey?: string | undefined;
325
- team?: import("../types").APITeam | null | undefined;
333
+ team?: import("..").APITeam | null | undefined;
326
334
  guildId?: string | undefined;
327
- guild?: import("../types").APIPartialGuild | undefined;
335
+ guild?: import("..").APIPartialGuild | undefined;
328
336
  primarySkuId?: string | undefined;
329
337
  slug?: string | undefined;
330
338
  coverImage?: string | undefined;
331
- flags?: import("../types").ApplicationFlags | undefined;
339
+ flags?: import("..").ApplicationFlags | undefined;
332
340
  approximateGuildCount?: number | undefined;
333
341
  approximateUserInstallCount?: number | undefined;
334
342
  redirectUris?: string[] | undefined;
335
343
  interactionsEndpointUrl?: string | null | undefined;
336
344
  roleConnectionsVerificationUrl?: string | null | undefined;
337
345
  tags?: [string, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?] | undefined;
338
- installParams?: import("../types").APIApplicationInstallParams | undefined;
339
- integrationTypesConfig?: import("../types").APIApplicationIntegrationTypesConfigMap | undefined;
346
+ installParams?: import("..").APIApplicationInstallParams | undefined;
347
+ integrationTypesConfig?: import("..").APIApplicationIntegrationTypesConfigMap | undefined;
340
348
  customInstallUrl?: string | undefined;
341
349
  } | undefined;
342
350
  approximatePresenceCount?: number | undefined;
@@ -352,14 +360,14 @@ export declare class BaseGuildChannel extends BaseChannel<ChannelType> {
352
360
  description?: string | null | undefined;
353
361
  scheduledStartTime: string;
354
362
  scheduledEndTime: string | null;
355
- privacyLevel: import("../types").GuildScheduledEventPrivacyLevel;
356
- status: import("../types").GuildScheduledEventStatus;
357
- entityType: import("../types").GuildScheduledEventEntityType.StageInstance;
363
+ privacyLevel: import("..").GuildScheduledEventPrivacyLevel;
364
+ status: import("..").GuildScheduledEventStatus;
365
+ entityType: import("..").GuildScheduledEventEntityType.StageInstance;
358
366
  entityId: string | null;
359
- creator?: import("../types").APIUser | undefined;
367
+ creator?: import("..").APIUser | undefined;
360
368
  userCount?: number | undefined;
361
369
  image?: string | null | undefined;
362
- recurrenceRule: import("../types").APIGuildScheduledEventRecurrenceRule | null;
370
+ recurrenceRule: import("..").APIGuildScheduledEventRecurrenceRule | null;
363
371
  } | {
364
372
  channelId: string;
365
373
  entityMetadata: null;
@@ -370,14 +378,14 @@ export declare class BaseGuildChannel extends BaseChannel<ChannelType> {
370
378
  description?: string | null | undefined;
371
379
  scheduledStartTime: string;
372
380
  scheduledEndTime: string | null;
373
- privacyLevel: import("../types").GuildScheduledEventPrivacyLevel;
374
- status: import("../types").GuildScheduledEventStatus;
375
- entityType: import("../types").GuildScheduledEventEntityType.Voice;
381
+ privacyLevel: import("..").GuildScheduledEventPrivacyLevel;
382
+ status: import("..").GuildScheduledEventStatus;
383
+ entityType: import("..").GuildScheduledEventEntityType.Voice;
376
384
  entityId: string | null;
377
- creator?: import("../types").APIUser | undefined;
385
+ creator?: import("..").APIUser | undefined;
378
386
  userCount?: number | undefined;
379
387
  image?: string | null | undefined;
380
- recurrenceRule: import("../types").APIGuildScheduledEventRecurrenceRule | null;
388
+ recurrenceRule: import("..").APIGuildScheduledEventRecurrenceRule | null;
381
389
  } | {
382
390
  channelId: null;
383
391
  entityMetadata: {
@@ -390,16 +398,16 @@ export declare class BaseGuildChannel extends BaseChannel<ChannelType> {
390
398
  description?: string | null | undefined;
391
399
  scheduledStartTime: string;
392
400
  scheduledEndTime: string | null;
393
- privacyLevel: import("../types").GuildScheduledEventPrivacyLevel;
394
- status: import("../types").GuildScheduledEventStatus;
395
- entityType: import("../types").GuildScheduledEventEntityType.External;
401
+ privacyLevel: import("..").GuildScheduledEventPrivacyLevel;
402
+ status: import("..").GuildScheduledEventStatus;
403
+ entityType: import("..").GuildScheduledEventEntityType.External;
396
404
  entityId: string | null;
397
- creator?: import("../types").APIUser | undefined;
405
+ creator?: import("..").APIUser | undefined;
398
406
  userCount?: number | undefined;
399
407
  image?: string | null | undefined;
400
- recurrenceRule: import("../types").APIGuildScheduledEventRecurrenceRule | null;
408
+ recurrenceRule: import("..").APIGuildScheduledEventRecurrenceRule | null;
401
409
  } | undefined;
402
- type: import("../types").InviteType;
410
+ type: import("..").InviteType;
403
411
  }>;
404
412
  delete: (code: string, reason?: string) => Promise<{
405
413
  code: string;
@@ -410,11 +418,11 @@ export declare class BaseGuildChannel extends BaseChannel<ChannelType> {
410
418
  icon: string | null;
411
419
  splash: string | null;
412
420
  banner: string | null;
413
- features: import("../types").GuildFeature[];
414
- verificationLevel: import("../types").GuildVerificationLevel;
421
+ features: import("..").GuildFeature[];
422
+ verificationLevel: import("..").GuildVerificationLevel;
415
423
  vanityUrlCode: string | null;
416
424
  premiumSubscriptionCount?: number | undefined;
417
- nsfwLevel: import("../types").GuildNSFWLevel;
425
+ nsfwLevel: import("..").GuildNSFWLevel;
418
426
  } | undefined;
419
427
  channel: {
420
428
  id: string;
@@ -435,14 +443,14 @@ export declare class BaseGuildChannel extends BaseChannel<ChannelType> {
435
443
  locale?: string | undefined;
436
444
  verified?: boolean | undefined;
437
445
  email?: string | null | undefined;
438
- flags?: import("../types").UserFlags | undefined;
439
- premiumType?: import("../types").UserPremiumType | undefined;
440
- publicFlags?: import("../types").UserFlags | undefined;
441
- avatarDecorationData?: import("../types").APIAvatarDecorationData | null | undefined;
442
- collectibles?: import("../types").APICollectibles | null | undefined;
443
- primaryGuild?: import("../types").APIUserPrimaryGuild | null | undefined;
446
+ flags?: import("..").UserFlags | undefined;
447
+ premiumType?: import("..").UserPremiumType | undefined;
448
+ publicFlags?: import("..").UserFlags | undefined;
449
+ avatarDecorationData?: import("..").APIAvatarDecorationData | null | undefined;
450
+ collectibles?: import("..").APICollectibles | null | undefined;
451
+ primaryGuild?: import("..").APIUserPrimaryGuild | null | undefined;
444
452
  } | undefined;
445
- targetType?: import("../types").InviteTargetType | undefined;
453
+ targetType?: import("..").InviteTargetType | undefined;
446
454
  targetUser?: {
447
455
  id: string;
448
456
  username: string;
@@ -457,12 +465,12 @@ export declare class BaseGuildChannel extends BaseChannel<ChannelType> {
457
465
  locale?: string | undefined;
458
466
  verified?: boolean | undefined;
459
467
  email?: string | null | undefined;
460
- flags?: import("../types").UserFlags | undefined;
461
- premiumType?: import("../types").UserPremiumType | undefined;
462
- publicFlags?: import("../types").UserFlags | undefined;
463
- avatarDecorationData?: import("../types").APIAvatarDecorationData | null | undefined;
464
- collectibles?: import("../types").APICollectibles | null | undefined;
465
- primaryGuild?: import("../types").APIUserPrimaryGuild | null | undefined;
468
+ flags?: import("..").UserFlags | undefined;
469
+ premiumType?: import("..").UserPremiumType | undefined;
470
+ publicFlags?: import("..").UserFlags | undefined;
471
+ avatarDecorationData?: import("..").APIAvatarDecorationData | null | undefined;
472
+ collectibles?: import("..").APICollectibles | null | undefined;
473
+ primaryGuild?: import("..").APIUserPrimaryGuild | null | undefined;
466
474
  } | undefined;
467
475
  targetApplication?: {
468
476
  id?: string | undefined;
@@ -472,26 +480,26 @@ export declare class BaseGuildChannel extends BaseChannel<ChannelType> {
472
480
  rpcOrigins?: string[] | undefined;
473
481
  botPublic?: boolean | undefined;
474
482
  botRequireCodeGrant?: boolean | undefined;
475
- bot?: import("../types").APIUser | undefined;
483
+ bot?: import("..").APIUser | undefined;
476
484
  termsOfServiceUrl?: string | undefined;
477
485
  privacyPolicyUrl?: string | undefined;
478
- owner?: import("../types").APIUser | undefined;
486
+ owner?: import("..").APIUser | undefined;
479
487
  verifyKey?: string | undefined;
480
- team?: import("../types").APITeam | null | undefined;
488
+ team?: import("..").APITeam | null | undefined;
481
489
  guildId?: string | undefined;
482
- guild?: import("../types").APIPartialGuild | undefined;
490
+ guild?: import("..").APIPartialGuild | undefined;
483
491
  primarySkuId?: string | undefined;
484
492
  slug?: string | undefined;
485
493
  coverImage?: string | undefined;
486
- flags?: import("../types").ApplicationFlags | undefined;
494
+ flags?: import("..").ApplicationFlags | undefined;
487
495
  approximateGuildCount?: number | undefined;
488
496
  approximateUserInstallCount?: number | undefined;
489
497
  redirectUris?: string[] | undefined;
490
498
  interactionsEndpointUrl?: string | null | undefined;
491
499
  roleConnectionsVerificationUrl?: string | null | undefined;
492
500
  tags?: [string, (string | undefined)?, (string | undefined)?, (string | undefined)?, (string | undefined)?] | undefined;
493
- installParams?: import("../types").APIApplicationInstallParams | undefined;
494
- integrationTypesConfig?: import("../types").APIApplicationIntegrationTypesConfigMap | undefined;
501
+ installParams?: import("..").APIApplicationInstallParams | undefined;
502
+ integrationTypesConfig?: import("..").APIApplicationIntegrationTypesConfigMap | undefined;
495
503
  customInstallUrl?: string | undefined;
496
504
  } | undefined;
497
505
  approximatePresenceCount?: number | undefined;
@@ -507,14 +515,14 @@ export declare class BaseGuildChannel extends BaseChannel<ChannelType> {
507
515
  description?: string | null | undefined;
508
516
  scheduledStartTime: string;
509
517
  scheduledEndTime: string | null;
510
- privacyLevel: import("../types").GuildScheduledEventPrivacyLevel;
511
- status: import("../types").GuildScheduledEventStatus;
512
- entityType: import("../types").GuildScheduledEventEntityType.StageInstance;
518
+ privacyLevel: import("..").GuildScheduledEventPrivacyLevel;
519
+ status: import("..").GuildScheduledEventStatus;
520
+ entityType: import("..").GuildScheduledEventEntityType.StageInstance;
513
521
  entityId: string | null;
514
- creator?: import("../types").APIUser | undefined;
522
+ creator?: import("..").APIUser | undefined;
515
523
  userCount?: number | undefined;
516
524
  image?: string | null | undefined;
517
- recurrenceRule: import("../types").APIGuildScheduledEventRecurrenceRule | null;
525
+ recurrenceRule: import("..").APIGuildScheduledEventRecurrenceRule | null;
518
526
  } | {
519
527
  channelId: string;
520
528
  entityMetadata: null;
@@ -525,14 +533,14 @@ export declare class BaseGuildChannel extends BaseChannel<ChannelType> {
525
533
  description?: string | null | undefined;
526
534
  scheduledStartTime: string;
527
535
  scheduledEndTime: string | null;
528
- privacyLevel: import("../types").GuildScheduledEventPrivacyLevel;
529
- status: import("../types").GuildScheduledEventStatus;
530
- entityType: import("../types").GuildScheduledEventEntityType.Voice;
536
+ privacyLevel: import("..").GuildScheduledEventPrivacyLevel;
537
+ status: import("..").GuildScheduledEventStatus;
538
+ entityType: import("..").GuildScheduledEventEntityType.Voice;
531
539
  entityId: string | null;
532
- creator?: import("../types").APIUser | undefined;
540
+ creator?: import("..").APIUser | undefined;
533
541
  userCount?: number | undefined;
534
542
  image?: string | null | undefined;
535
- recurrenceRule: import("../types").APIGuildScheduledEventRecurrenceRule | null;
543
+ recurrenceRule: import("..").APIGuildScheduledEventRecurrenceRule | null;
536
544
  } | {
537
545
  channelId: null;
538
546
  entityMetadata: {
@@ -545,16 +553,16 @@ export declare class BaseGuildChannel extends BaseChannel<ChannelType> {
545
553
  description?: string | null | undefined;
546
554
  scheduledStartTime: string;
547
555
  scheduledEndTime: string | null;
548
- privacyLevel: import("../types").GuildScheduledEventPrivacyLevel;
549
- status: import("../types").GuildScheduledEventStatus;
550
- entityType: import("../types").GuildScheduledEventEntityType.External;
556
+ privacyLevel: import("..").GuildScheduledEventPrivacyLevel;
557
+ status: import("..").GuildScheduledEventStatus;
558
+ entityType: import("..").GuildScheduledEventEntityType.External;
551
559
  entityId: string | null;
552
- creator?: import("../types").APIUser | undefined;
560
+ creator?: import("..").APIUser | undefined;
553
561
  userCount?: number | undefined;
554
562
  image?: string | null | undefined;
555
- recurrenceRule: import("../types").APIGuildScheduledEventRecurrenceRule | null;
563
+ recurrenceRule: import("..").APIGuildScheduledEventRecurrenceRule | null;
556
564
  } | undefined;
557
- type: import("../types").InviteType;
565
+ type: import("..").InviteType;
558
566
  }>;
559
567
  };
560
568
  permissionOverwrites: {
@@ -567,21 +575,21 @@ export declare class BaseGuildChannel extends BaseChannel<ChannelType> {
567
575
  rolePermissions(role: GuildRole, checkAdmin?: boolean): Promise<import("./extra/Permissions").PermissionsBitField>;
568
576
  overwritesFor(member: GuildMember): Promise<{
569
577
  everyone: {
570
- type: import("../types").OverwriteType;
578
+ type: import("..").OverwriteType;
571
579
  id: string;
572
580
  deny: import("./extra/Permissions").PermissionsBitField;
573
581
  allow: import("./extra/Permissions").PermissionsBitField;
574
582
  guildId: string;
575
583
  } | undefined;
576
584
  roles: {
577
- type: import("../types").OverwriteType;
585
+ type: import("..").OverwriteType;
578
586
  id: string;
579
587
  deny: import("./extra/Permissions").PermissionsBitField;
580
588
  allow: import("./extra/Permissions").PermissionsBitField;
581
589
  guildId: string;
582
590
  }[];
583
591
  member: {
584
- type: import("../types").OverwriteType;
592
+ type: import("..").OverwriteType;
585
593
  id: string;
586
594
  deny: import("./extra/Permissions").PermissionsBitField;
587
595
  allow: import("./extra/Permissions").PermissionsBitField;
@@ -590,7 +598,7 @@ export declare class BaseGuildChannel extends BaseChannel<ChannelType> {
590
598
  }>;
591
599
  guild(mode?: 'rest' | 'flow'): Promise<GuildStructure<'cached' | 'api'>>;
592
600
  guild(mode: 'cache'): ReturnCache<GuildStructure<'cached'> | undefined>;
593
- get url(): string;
601
+ get url(): `https://discord.com/channels/${string}/${string}`;
594
602
  setPosition(position: number, reason?: string): Promise<this>;
595
603
  setName(name: string, reason?: string): Promise<this>;
596
604
  setParent(parent_id: string | null, reason?: string): Promise<this>;
@@ -608,13 +616,13 @@ export declare class MessagesMethods extends DiscordBase {
608
616
  delete: (messageId: string, reason?: string) => Promise<void>;
609
617
  fetch: (messageId: string, force?: boolean) => Promise<MessageStructure>;
610
618
  purge: (messages: string[], reason?: string) => Promise<void | undefined>;
611
- list: (fetchOptions: RESTGetAPIChannelMessagesQuery) => Promise<MessageStructure[]>;
619
+ list: (fetchOptions?: RESTGetAPIChannelMessagesQuery) => Promise<MessageStructure[]>;
612
620
  };
613
621
  pins: {
614
622
  fetch: (query?: RESTGetAPIChannelMessagesPinsQuery) => Promise<{
615
623
  hasMore: boolean;
616
624
  items: {
617
- pinnedAt: string;
625
+ pinnedAt: number;
618
626
  message: MessageStructure;
619
627
  }[];
620
628
  }>;
@@ -636,7 +644,7 @@ export declare class MessagesMethods extends DiscordBase {
636
644
  delete: (messageId: string, reason?: string) => Promise<void>;
637
645
  fetch: (messageId: string, force?: boolean) => Promise<MessageStructure>;
638
646
  purge: (messages: string[], reason?: string) => Promise<void | undefined>;
639
- list: (fetchOptions: RESTGetAPIChannelMessagesQuery) => Promise<MessageStructure[]>;
647
+ list: (fetchOptions?: RESTGetAPIChannelMessagesQuery) => Promise<MessageStructure[]>;
640
648
  };
641
649
  static reactions(ctx: MethodContext<{
642
650
  channelId: string;
@@ -652,7 +660,7 @@ export declare class MessagesMethods extends DiscordBase {
652
660
  fetch: (query?: RESTGetAPIChannelMessagesPinsQuery) => Promise<{
653
661
  hasMore: boolean;
654
662
  items: {
655
- pinnedAt: string;
663
+ pinnedAt: number;
656
664
  message: MessageStructure;
657
665
  }[];
658
666
  }>;
@@ -697,7 +705,7 @@ export declare class VoiceChannelMethods extends DiscordBase {
697
705
  setVideoQuality(quality: keyof typeof VideoQualityMode, reason?: string): Promise<this>;
698
706
  setVoiceStatus(status?: string | null): Promise<undefined>;
699
707
  states(): ReturnCache<VoiceStateStructure[]>;
700
- members(force?: boolean): Promise<Collection<string, GuildMemberStructure>>;
708
+ members(force?: boolean): Promise<GuildMemberStructure[]>;
701
709
  }
702
710
  export declare class WebhookGuildMethods extends DiscordBase {
703
711
  webhooks: {
@@ -748,12 +756,12 @@ export interface MediaChannel extends ObjectToLower<Omit<APIGuildMediaChannel, '
748
756
  export declare class MediaChannel extends BaseGuildChannel {
749
757
  type: ChannelType.GuildMedia;
750
758
  }
751
- export interface ForumChannel extends ObjectToLower<Omit<APIGuildForumChannel, 'permission_overwrites' | 'guild_id'>>, Omit<ThreadOnlyMethods, 'type' | 'edit'>, WebhookChannelMethods {
759
+ export interface ForumChannel extends ObjectToLower<Omit<APIGuildForumChannel, 'permission_overwrites' | 'guild_id'>>, Omit<ThreadOnlyMethods, 'type' | 'edit' | 'delete'>, WebhookChannelMethods {
752
760
  }
753
761
  export declare class ForumChannel extends BaseGuildChannel {
754
762
  type: ChannelType.GuildForum;
755
763
  }
756
- export interface ThreadChannel extends ObjectToLower<Omit<APIThreadChannel, 'permission_overwrites' | 'guild_id'>>, Omit<TextBaseGuildChannel, 'edit' | 'parentId'> {
764
+ export interface ThreadChannel extends ObjectToLower<Omit<APIThreadChannel, 'permission_overwrites' | 'guild_id'>>, Omit<TextBaseGuildChannel, 'edit' | 'parentId' | 'delete'> {
757
765
  parentId: string;
758
766
  }
759
767
  export declare class ThreadChannel extends BaseChannel<ChannelType.PublicThread | ChannelType.AnnouncementThread | ChannelType.PrivateThread> {
@@ -783,7 +791,10 @@ export interface NewsChannel extends ObjectToLower<Omit<APINewsChannel, 'permiss
783
791
  }
784
792
  export declare class NewsChannel extends BaseGuildChannel {
785
793
  type: ChannelType.GuildAnnouncement;
786
- addFollower(webhookChannelId: string, reason?: string): Promise<import("../types").APIFollowedChannel>;
794
+ addFollower(webhookChannelId: string, reason?: string): Promise<import("..").APIFollowedChannel>;
795
+ }
796
+ export interface DirectoryChannel extends ObjectToLower<Omit<APIGuildChannel<ChannelType.GuildDirectory>, 'permission_overwrites' | 'guild_id'>> {
797
+ guildId: string;
787
798
  }
788
799
  export declare class DirectoryChannel extends BaseChannel<ChannelType.GuildDirectory> {
789
800
  }
@@ -791,6 +802,9 @@ export type AllGuildChannels = TextGuildChannelStructure | VoiceChannelStructure
791
802
  export type AllTextableChannels = TextGuildChannelStructure | VoiceChannelStructure | DMChannelStructure | NewsChannelStructure | ThreadChannelStructure;
792
803
  export type AllGuildTextableChannels = TextGuildChannelStructure | VoiceChannelStructure | NewsChannelStructure | ThreadChannelStructure;
793
804
  export type AllGuildVoiceChannels = VoiceChannelStructure | StageChannelStructure;
805
+ export type AllNamedChannels = AllGuildChannels | BaseGuildChannelStructure | (BaseChannelStructure & {
806
+ name: string;
807
+ });
794
808
  export type AllChannels = BaseChannelStructure | BaseGuildChannelStructure | TextGuildChannelStructure | DMChannelStructure | VoiceChannelStructure | MediaChannelStructure | ForumChannelStructure | ThreadChannelStructure | CategoryChannelStructure | NewsChannelStructure | DirectoryChannelStructure | StageChannelStructure;
795
809
  export type GuildChannelTypes = ChannelType.GuildAnnouncement | ChannelType.GuildVoice | ChannelType.GuildText | ChannelType.GuildStageVoice | ChannelType.GuildForum | ChannelType.GuildMedia | ChannelType.GuildCategory | ChannelType.AnnouncementThread | ChannelType.PrivateThread | ChannelType.PublicThread;
796
810
  export {};