mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 19:28:17 +00:00
use proper invite types
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
import { rest } from "../../rest/rest.ts";
|
||||
import { InviteCreate } from "../../types/invites/invite_create.ts";
|
||||
import { CreateChannelInvite } from "../../types/invites/create_channel_invite.ts";
|
||||
import { endpoints } from "../../util/constants.ts";
|
||||
import { requireBotChannelPermissions } from "../../util/permissions.ts";
|
||||
|
||||
/** Creates a new invite for this channel. Requires CREATE_INSTANT_INVITE */
|
||||
export async function createInvite(
|
||||
channelId: string,
|
||||
options: InviteCreate,
|
||||
options: CreateChannelInvite,
|
||||
) {
|
||||
await requireBotChannelPermissions(channelId, ["CREATE_INSTANT_INVITE"]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user