mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 11:28:15 +00:00
return a promise so they can be awaited
This commit is contained in:
@@ -114,7 +114,7 @@ export function removeReaction(
|
|||||||
messageID: string,
|
messageID: string,
|
||||||
reaction: string,
|
reaction: string,
|
||||||
) {
|
) {
|
||||||
RequestManager.delete(
|
return RequestManager.delete(
|
||||||
endpoints.CHANNEL_MESSAGE_REACTION_ME(
|
endpoints.CHANNEL_MESSAGE_REACTION_ME(
|
||||||
channelID,
|
channelID,
|
||||||
messageID,
|
messageID,
|
||||||
@@ -134,7 +134,7 @@ export function removeUserReaction(
|
|||||||
throw new Error(Errors.MISSING_MANAGE_MESSAGES);
|
throw new Error(Errors.MISSING_MANAGE_MESSAGES);
|
||||||
}
|
}
|
||||||
|
|
||||||
RequestManager.delete(
|
return RequestManager.delete(
|
||||||
endpoints.CHANNEL_MESSAGE_REACTION_USER(
|
endpoints.CHANNEL_MESSAGE_REACTION_USER(
|
||||||
channelID,
|
channelID,
|
||||||
messageID,
|
messageID,
|
||||||
@@ -151,7 +151,7 @@ export function removeAllReactions(channelID: string, messageID: string) {
|
|||||||
) {
|
) {
|
||||||
throw new Error(Errors.MISSING_MANAGE_MESSAGES);
|
throw new Error(Errors.MISSING_MANAGE_MESSAGES);
|
||||||
}
|
}
|
||||||
RequestManager.delete(
|
return RequestManager.delete(
|
||||||
endpoints.CHANNEL_MESSAGE_REACTIONS(channelID, messageID),
|
endpoints.CHANNEL_MESSAGE_REACTIONS(channelID, messageID),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -167,7 +167,7 @@ export function removeReactionEmoji(
|
|||||||
) {
|
) {
|
||||||
throw new Error(Errors.MISSING_MANAGE_MESSAGES);
|
throw new Error(Errors.MISSING_MANAGE_MESSAGES);
|
||||||
}
|
}
|
||||||
RequestManager.delete(
|
return RequestManager.delete(
|
||||||
endpoints.CHANNEL_MESSAGE_REACTION(channelID, messageID, reaction),
|
endpoints.CHANNEL_MESSAGE_REACTION(channelID, messageID, reaction),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user