mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 03:18:17 +00:00
messages
This commit is contained in:
@@ -6,12 +6,10 @@ import { requireBotChannelPermissions } from "../../util/permissions.ts";
|
||||
export async function pin(channelId: string, messageId: string) {
|
||||
await requireBotChannelPermissions(channelId, ["MANAGE_MESSAGES"]);
|
||||
|
||||
const result = await rest.runMethod(
|
||||
return await rest.runMethod<undefined>(
|
||||
"put",
|
||||
endpoints.CHANNEL_PIN(channelId, messageId),
|
||||
);
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
// aliases
|
||||
|
||||
Reference in New Issue
Block a user