Files
discordeno/structures/role.ts
2020-05-20 13:33:00 -04:00

12 lines
298 B
TypeScript

import { RoleData } from "../types/role.ts";
export const createRole = (data: RoleData) => ({
...data,
/** The entire raw Role data */
raw: data,
/** The @ mention of the role in a string. */
mention: `<@&${data.id}>`,
});
export interface Role extends ReturnType<typeof createRole> {}