This commit is contained in:
ITOH
2021-04-24 19:38:53 +02:00
parent 03db98cd48
commit 6eec266c60
14 changed files with 30 additions and 46 deletions
+1 -3
View File
@@ -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