2022-03-08 16:25:27 +00:00
|
|
|
import type { IServerRoom } from '../../IRoom';
|
2022-02-14 16:20:29 +00:00
|
|
|
import type { IUser } from '../../IUser';
|
|
|
|
|
|
|
|
export type DmEndpoints = {
|
|
|
|
'dm.create': {
|
|
|
|
POST: (
|
|
|
|
params: (
|
|
|
|
| {
|
|
|
|
username: Exclude<IUser['username'], undefined>;
|
|
|
|
}
|
|
|
|
| {
|
|
|
|
usernames: string;
|
|
|
|
}
|
|
|
|
) & {
|
|
|
|
excludeSelf?: boolean;
|
|
|
|
}
|
|
|
|
) => {
|
2022-03-08 16:25:27 +00:00
|
|
|
room: IServerRoom & { rid: IServerRoom['_id'] };
|
2022-02-14 16:20:29 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|