mirror of
https://github.com/discordeno/discordeno.git
synced 2026-05-31 16:00:07 +00:00
12 lines
298 B
TypeScript
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> {}
|