mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 03:18:17 +00:00
fix(handlers): add missing imports (#724)
* Update GUILD_EMOJIS_UPDATE.ts * fix imports Co-authored-by: ayntee <ayyantee@gmail.com>
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
import { RequestManager } from "../../rest/request_manager.ts";
|
||||
import { ModifyGuildChannelPositions } from "../../types/mod.ts";
|
||||
import { endpoints } from "../../util/constants.ts";
|
||||
|
||||
/** Modify the positions of channels on the guild. Requires MANAGE_CHANNELS permisison. */
|
||||
export async function swapChannels(
|
||||
guildId: string,
|
||||
channelPositions: PositionSwap[],
|
||||
channelPositions: ModifyGuildChannelPositions[],
|
||||
) {
|
||||
if (channelPositions.length < 2) {
|
||||
throw "You must provide at least two channels to be swapped.";
|
||||
|
||||
Reference in New Issue
Block a user