tests: add invites tests (#855)

* tests: add invites tests

Co-authored-by: TriForMine <TriForMine@users.noreply.github.com>
This commit is contained in:
TriForMine
2021-04-14 09:26:39 +02:00
committed by GitHub
parent 3dd75098b1
commit d3e5f537d3
7 changed files with 257 additions and 1 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ import { DiscordInvite, Invite } from "../../types/invites/invite.ts";
import { endpoints } from "../../util/constants.ts";
import { snakeKeysToCamelCase } from "../../util/utils.ts";
/** Returns an invite for the given code. */
/** Returns an invite for the given code or throws an error if the invite doesn't exists. */
export async function getInvite(inviteCode: string) {
const result: DiscordInvite = await rest.runMethod(
"get",