From 9f9a344eef31c6c898f117495a608777da2a18d3 Mon Sep 17 00:00:00 2001 From: ITOH Date: Sat, 22 May 2021 17:57:32 +0200 Subject: [PATCH] fix: getInvite return type --- src/helpers/invites/get_invite.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/helpers/invites/get_invite.ts b/src/helpers/invites/get_invite.ts index d6a58e4ec..dbe9c7062 100644 --- a/src/helpers/invites/get_invite.ts +++ b/src/helpers/invites/get_invite.ts @@ -1,10 +1,10 @@ import { rest } from "../../rest/rest.ts"; import { GetInvite } from "../../types/invites/get_invite.ts"; -import type { Invite } from "../../types/invites/invite.ts"; +import type { InviteMetadata } from "../../types/invites/invite_metadata.ts"; import { endpoints } from "../../util/constants.ts"; import { snakelize } from "../../util/utils.ts"; /** Returns an invite for the given code or throws an error if the invite doesn't exists. */ export async function getInvite(inviteCode: string, options?: GetInvite) { - return await rest.runMethod("get", endpoints.INVITE(inviteCode), snakelize(options ?? {})); + return await rest.runMethod("get", endpoints.INVITE(inviteCode), snakelize(options ?? {})); }