mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-17 19:58:18 +00:00
Format files
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user