Prettified Code!

This commit is contained in:
itohatweb
2021-05-21 15:51:33 +00:00
committed by GitHub Action
parent fe4ab8517b
commit 3549cdeb63
279 changed files with 1617 additions and 1768 deletions
+2 -2
View File
@@ -5,7 +5,7 @@ import { endpoints } from "../../util/constants.ts";
/** Modify the positions of channels on the guild. Requires MANAGE_CHANNELS permisison. */
export async function swapChannels(
guildId: bigint,
channelPositions: ModifyGuildChannelPositions[],
channelPositions: ModifyGuildChannelPositions[]
) {
if (channelPositions.length < 2) {
throw "You must provide at least two channels to be swapped.";
@@ -14,6 +14,6 @@ export async function swapChannels(
return await rest.runMethod<undefined>(
"patch",
endpoints.GUILD_CHANNELS(guildId),
channelPositions,
channelPositions
);
}