fix(ci): ci error (#7454)

Co-authored-by: Almeida <almeidx@pm.me>
This commit is contained in:
Suneet Tipirneni
2022-02-13 07:37:41 -05:00
committed by GitHub
parent e8252ed3b9
commit 0af9bc841f
2 changed files with 15 additions and 1 deletions

View File

@@ -1337,5 +1337,5 @@ const selectMenu = new SelectMenuComponent({
});
new ActionRow({
components: [selectMenu, button],
components: [selectMenu.toJSON(), button.toJSON()],
});

View File

@@ -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,
},
};
}