mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-18 04:23:31 +01:00
@@ -1337,5 +1337,5 @@ const selectMenu = new SelectMenuComponent({
|
|||||||
});
|
});
|
||||||
|
|
||||||
new ActionRow({
|
new ActionRow({
|
||||||
components: [selectMenu, button],
|
components: [selectMenu.toJSON(), button.toJSON()],
|
||||||
});
|
});
|
||||||
|
|||||||
14
packages/rest/__tests__/util.ts
Normal file
14
packages/rest/__tests__/util.ts
Normal 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,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user