mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-10 12:25:02 +00:00
some transforms
Signed-off-by: GitHub <noreply@github.com>
This commit is contained in:
parent
f1791fac44
commit
4c788bc321
7 changed files with 16 additions and 13 deletions
|
@ -49,6 +49,7 @@ export class TemplateSafeUser extends TemplateSafeValueContainer {
|
|||
id: Snowflake | string;
|
||||
username: string;
|
||||
discriminator: string;
|
||||
globalName?: string;
|
||||
mention: string;
|
||||
tag: string;
|
||||
avatarURL?: string;
|
||||
|
@ -257,6 +258,7 @@ export function userToTemplateSafeUser(user: User | UnknownUser): TemplateSafeUs
|
|||
id: user.id,
|
||||
username: user.username,
|
||||
discriminator: user.discriminator,
|
||||
globalName: user.globalName,
|
||||
mention: `<@${user.id}>`,
|
||||
tag: user.tag,
|
||||
avatarURL: user.displayAvatarURL?.(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue