Format files

This commit is contained in:
ayntee
2021-04-13 06:05:20 +00:00
parent 405f362ec9
commit b633689d3a
9 changed files with 24 additions and 19 deletions
+2 -2
View File
@@ -13,7 +13,7 @@ import { requireBotChannelPermissions } from "../../util/permissions.ts";
/** Edit the message. */
export async function editMessage(
message: DiscordenoMessage,
content: string | EditMessage
content: string | EditMessage,
) {
if (message.author.id !== botId) {
throw "You can only edit a message that was sent by the bot.";
@@ -32,7 +32,7 @@ export async function editMessage(
const result: DiscordMessage = await rest.runMethod(
"patch",
endpoints.CHANNEL_MESSAGE(message.channelId, message.id),
content
content,
);
return structures.createDiscordenoMessage(result);
+1 -1
View File
@@ -2,7 +2,7 @@ import { rest } from "../../rest/rest.ts";
import { DiscordUser } from "../../types/users/user.ts";
import { Collection } from "../../util/collection.ts";
import { endpoints } from "../../util/constants.ts";
import {GetReactions} from "../../types/messages/message_get_reactions.ts";
import { GetReactions } from "../../types/messages/message_get_reactions.ts";
/** Get a list of users that reacted with this emoji. */
export async function getReactions(