3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-18 15:45:03 +00:00

Automod logging improvements

This commit is contained in:
Dragory 2019-10-11 22:56:34 +03:00
parent 323cfc671e
commit 98908e8a9f
4 changed files with 26 additions and 11 deletions

View file

@ -7,6 +7,7 @@ import {
Guild,
GuildAuditLog,
GuildAuditLogEntry,
GuildChannel,
Member,
MessageContent,
TextableChannel,
@ -792,3 +793,15 @@ export function messageSummary(msg: SavedMessage) {
return result;
}
export function verboseUserMention(user: User | UnknownUser): string {
return `<@!${user.id}> (**${user.username}#${user.discriminator}**, \`${user.id}\`)`;
}
export function verboseUserName(user: User | UnknownUser): string {
return `**${user.username}#${user.discriminator}** (\`${user.id}\`)`;
}
export function verboseChannelMention(channel: GuildChannel): string {
return `<#${channel.id}> (**#${channel.name}**, \`${channel.id}\`)`;
}