Skip to content

Commit

Permalink
fix(guildmember): make pending nullable (#7401)
Browse files Browse the repository at this point in the history
  • Loading branch information
almeidx authored and suneettipirneni committed Feb 13, 2022
1 parent e8252ed commit 4b12073
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions packages/rest/__tests__/util.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { DefaultRestOptions } from '../src';

export function genPath(path: string) {
return `/api/v${DefaultRestOptions.version}${path}`;
}

export function jsonHeaders(headers: Record<string, string> = {}) {
return {
headers: {
'content-type': 'application/json',
...headers,
},
};
}

0 comments on commit 4b12073

Please sign in to comment.