fix: more missing typings and remove swap roles

This commit is contained in:
Skillz4Killz
2021-04-12 18:35:24 +00:00
committed by GitHub
parent 79a0c7ae95
commit a741e721f3
5 changed files with 2 additions and 66 deletions
-16
View File
@@ -1,16 +0,0 @@
import { rest } from "../../rest/rest.ts";
import { endpoints } from "../../util/constants.ts";
import { requireBotGuildPermissions } from "../../util/permissions.ts";
/** Modify the positions of a set of role objects for the guild. Requires the MANAGE_ROLES permission. */
export async function swapRoles(guildId: string, rolePositions: PositionSwap) {
await requireBotGuildPermissions(guildId, ["MANAGE_ROLES"]);
const result = await rest.runMethod(
"patch",
endpoints.GUILD_ROLES(guildId),
rolePositions,
);
return result;
}