mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 19:28:17 +00:00
allow structures to be overriden
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
import { RoleData } from "../types/role.ts";
|
||||
|
||||
export const createRole = (data: RoleData) => ({
|
||||
...data,
|
||||
/** The @ mention of the role in a string. */
|
||||
mention: `<@&${data.id}>`,
|
||||
});
|
||||
export function createRole(data: RoleData) {
|
||||
return {
|
||||
...data,
|
||||
/** The @ mention of the role in a string. */
|
||||
mention: `<@&${data.id}>`,
|
||||
};
|
||||
}
|
||||
|
||||
export interface Role extends ReturnType<typeof createRole> {}
|
||||
|
||||
Reference in New Issue
Block a user