use proper invite types

This commit is contained in:
ITOH
2021-04-13 21:58:57 +02:00
parent c85b76cd18
commit c358d4f932
3 changed files with 25 additions and 2 deletions
+2 -2
View File
@@ -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"]);