mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 08:47:22 +00:00
fix: Add missing type in route channels.reactions.message (#5228)
This commit is contained in:
@@ -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)}`;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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) */
|
||||||
|
|||||||
Reference in New Issue
Block a user