From 3f80e921cadee773e08a5d4f57e562700dcaa72d Mon Sep 17 00:00:00 2001 From: ITOH Date: Sat, 22 May 2021 18:05:21 +0200 Subject: [PATCH] fix: createInvite return type --- src/helpers/invites/create_invite.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/helpers/invites/create_invite.ts b/src/helpers/invites/create_invite.ts index 36cb94232..c3354a3fe 100644 --- a/src/helpers/invites/create_invite.ts +++ b/src/helpers/invites/create_invite.ts @@ -1,6 +1,6 @@ import { rest } from "../../rest/rest.ts"; import type { CreateChannelInvite } from "../../types/invites/create_channel_invite.ts"; -import type { Invite } from "../../types/invites/invite.ts"; +import type { InviteMetadata } from "../../types/invites/invite_metadata.ts"; import { Errors } from "../../types/discordeno/errors.ts"; import { endpoints } from "../../util/constants.ts"; import { requireBotChannelPermissions } from "../../util/permissions.ts"; @@ -16,5 +16,5 @@ export async function createInvite(channelId: bigint, options: CreateChannelInvi throw new Error(Errors.INVITE_MAX_USES_INVALID); } - return await rest.runMethod("post", endpoints.CHANNEL_INVITES(channelId), options); + return await rest.runMethod("post", endpoints.CHANNEL_INVITES(channelId), options); }