This repository has been archived on 2024-10-29. You can view files and clone it, but cannot push or open issues or pull requests.
website/cypress/fixtures/guilds/[guildId]/members/join.ts

20 lines
522 B
TypeScript
Raw Normal View History

import { guildExample } from '../../guild'
2022-08-31 21:44:33 +02:00
import type { Handler } from '../../../handler'
import { memberExampleComplete } from '../../../members/member'
import { channelExample } from '../../../channels/channel'
export const postMembersWithGuildIdHandler: Handler = {
method: 'POST',
url: `/guilds/${guildExample.id}/members/join`,
response: {
statusCode: 201,
body: {
...memberExampleComplete,
guild: {
...guildExample,
defaultChannelId: channelExample.id
}
}
}
}