31 lines
666 B
TypeScript
31 lines
666 B
TypeScript
import { Handler } from '../../handler'
|
|
import { guildExample } from '../guild'
|
|
import { memberExampleComplete } from '../../members/member'
|
|
|
|
export const getGuildMemberWithGuildIdHandler: Handler = {
|
|
method: 'GET',
|
|
url: `/guilds/${guildExample.id}`,
|
|
response: {
|
|
statusCode: 200,
|
|
body: {
|
|
guild: guildExample,
|
|
member: memberExampleComplete
|
|
}
|
|
}
|
|
}
|
|
|
|
export const getGuildMemberNotOwnerWithGuildIdHandler: Handler = {
|
|
method: 'GET',
|
|
url: `/guilds/${guildExample.id}`,
|
|
response: {
|
|
statusCode: 200,
|
|
body: {
|
|
guild: guildExample,
|
|
member: {
|
|
...memberExampleComplete,
|
|
isOwner: false
|
|
}
|
|
}
|
|
}
|
|
}
|