mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 19:28:17 +00:00
f
This commit is contained in:
@@ -3,7 +3,10 @@ import { endpoints } from "../../util/constants.ts";
|
||||
import { requireBotChannelPermissions } from "../../util/permissions.ts";
|
||||
|
||||
/** Unpin a message in a channel. Requires MANAGE_MESSAGES. */
|
||||
export async function unpin(channelId: string, messageId: string) {
|
||||
export async function unpin(
|
||||
channelId: string,
|
||||
messageId: string,
|
||||
): Promise<undefined> {
|
||||
await requireBotChannelPermissions(channelId, ["MANAGE_MESSAGES"]);
|
||||
|
||||
const result = await rest.runMethod(
|
||||
|
||||
Reference in New Issue
Block a user