mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-02 17:00:08 +00:00
13 lines
330 B
TypeScript
13 lines
330 B
TypeScript
import { Unpromise } from "../types/misc.ts";
|
|
import { RoleData } from "../types/role.ts";
|
|
|
|
export async function createRole(data: RoleData) {
|
|
return {
|
|
...data,
|
|
/** The @ mention of the role in a string. */
|
|
mention: `<@&${data.id}>`,
|
|
};
|
|
}
|
|
|
|
export interface Role extends Unpromise<ReturnType<typeof createRole>> {}
|