verboseChannelMention: don't use # for voice channels
This commit is contained in:
parent
e0a659be4a
commit
1d0f7636c2
1 changed files with 5 additions and 1 deletions
|
@ -1216,7 +1216,11 @@ export function verboseUserName(user: User | UnknownUser): string {
|
|||
}
|
||||
|
||||
export function verboseChannelMention(channel: GuildChannel): string {
|
||||
return `<#${channel.id}> (**#${channel.name}**, \`${channel.id}\`)`;
|
||||
const plainTextName =
|
||||
channel.type === Constants.ChannelTypes.GUILD_VOICE || channel.type === Constants.ChannelTypes.GUILD_STAGE
|
||||
? channel.name
|
||||
: `#${channel.name}`;
|
||||
return `<#${channel.id}> (**${plainTextName}**, \`${channel.id}\`)`;
|
||||
}
|
||||
|
||||
export function messageLink(message: Message): string;
|
||||
|
|
Loading…
Add table
Reference in a new issue