change: prettier code

This commit is contained in:
Skillz4Killz
2021-10-23 15:50:59 +00:00
committed by GitHub Action
parent 72ffbdc4db
commit 1c1c93ed7f
29 changed files with 174 additions and 118 deletions
+8 -3
View File
@@ -5,9 +5,14 @@ import type { Bot } from "../../bot.ts";
export async function followChannel(bot: Bot, sourceChannelId: bigint, targetChannelId: bigint) {
await bot.utils.requireBotChannelPermissions(bot, targetChannelId, ["MANAGE_WEBHOOKS"]);
const data = await bot.rest.runMethod<FollowedChannel>(bot.rest,"post", bot.constants.endpoints.CHANNEL_FOLLOW(sourceChannelId), {
webhook_channel_id: targetChannelId,
});
const data = await bot.rest.runMethod<FollowedChannel>(
bot.rest,
"post",
bot.constants.endpoints.CHANNEL_FOLLOW(sourceChannelId),
{
webhook_channel_id: targetChannelId,
}
);
return data.webhookId;
}