mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 08:47:22 +00:00
fix(types,bot)!: GetChannelPins.items is an array (#4284)
This commit is contained in:
@@ -442,7 +442,7 @@ export function createBotHelpers<TProps extends TransformersDesiredProperties, T
|
||||
|
||||
return {
|
||||
hasMore: res.has_more,
|
||||
items: bot.transformers.messagePin(bot, res.items),
|
||||
items: res.items.map((item) => bot.transformers.messagePin(bot, item)),
|
||||
}
|
||||
},
|
||||
getPinnedMessages: async (channelId) => {
|
||||
@@ -1003,7 +1003,7 @@ export type BotHelpers<TProps extends TransformersDesiredProperties, TBehavior e
|
||||
getChannelPins: (
|
||||
channelId: BigString,
|
||||
options?: GetChannelPinsOptions,
|
||||
) => Promise<{ items: SetupDesiredProps<MessagePin, TProps, TBehavior>; hasMore: boolean }>
|
||||
) => Promise<{ items: SetupDesiredProps<MessagePin, TProps, TBehavior>[]; hasMore: boolean }>
|
||||
/** @deprecated Use {@link BotHelpers.getChannelPins} instead */
|
||||
getPinnedMessages: (channelId: BigString) => Promise<SetupDesiredProps<Message, TProps, TBehavior>[]>
|
||||
getPrivateArchivedThreads: (channelId: BigString, options?: ListArchivedThreads) => Promise<Camelize<DiscordListArchivedThreads>>
|
||||
|
||||
Reference in New Issue
Block a user