fix: Add missing type in route channels.reactions.message (#5228)

This commit is contained in:
Fleny
2026-07-26 05:18:11 +05:30
committed by GitHub
parent 6e830e57ce
commit 00ac3989c6
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -94,6 +94,7 @@ export function createRoutes(disableURIEncode: boolean = false): RestRoutes {
let url = `/channels/${encode(channelId)}/messages/${encode(messageId)}/reactions/${encodeURIComponent(emoji)}?`; let url = `/channels/${encode(channelId)}/messages/${encode(messageId)}/reactions/${encodeURIComponent(emoji)}?`;
if (options) { if (options) {
if (options.type) url += `type=${encode(options.type)}`;
if (options.after) url += `after=${encode(options.after)}`; if (options.after) url += `after=${encode(options.after)}`;
if (options.limit) url += `&limit=${encode(options.limit)}`; if (options.limit) url += `&limit=${encode(options.limit)}`;
} }
+1 -1
View File
@@ -110,7 +110,7 @@ export interface CreateMessageOptions {
/** https://docs.discord.com/developers/resources/message#get-reactions-query-string-params */ /** https://docs.discord.com/developers/resources/message#get-reactions-query-string-params */
export interface GetReactions { export interface GetReactions {
/** The type of reaction */ /** The type of reaction */
type: DiscordReactionType; type?: DiscordReactionType;
/** Get users after this user Id */ /** Get users after this user Id */
after?: string; after?: string;
/** Max number of users to return (1-100) */ /** Max number of users to return (1-100) */