mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 19:28:17 +00:00
Add Role.tags property
This commit is contained in:
@@ -6,6 +6,11 @@ export async function createRole(data: RoleData) {
|
||||
...data,
|
||||
/** The @ mention of the role in a string. */
|
||||
mention: `<@&${data.id}>`,
|
||||
tags: {
|
||||
botID: data.tags?.botID,
|
||||
premiumSubscriber: "premium_subscriber" in (data.tags ?? {}),
|
||||
integrationID: data.tags?.integrationID,
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user