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:
parent
323cfc671e
commit
98908e8a9f
4 changed files with 26 additions and 11 deletions
13
src/utils.ts
13
src/utils.ts
|
@ -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}\`)`;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue