mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-02 08:50:07 +00:00
11 lines
192 B
TypeScript
11 lines
192 B
TypeScript
import { Role, Role_Data } from "../types/role"
|
|
|
|
export const create_role = (data: Role_Data) => {
|
|
const role: Role = {
|
|
...data,
|
|
mention: () => `<@&${data.id}>`
|
|
}
|
|
|
|
return role
|
|
}
|