feat: new username support
This commit is contained in:
parent
514e93aa23
commit
0e70412bc4
8 changed files with 42 additions and 20 deletions
|
@ -9,6 +9,7 @@ import {
|
|||
inviteHasCounts,
|
||||
memoize,
|
||||
preEmbedPadding,
|
||||
renderUsername,
|
||||
resolveInvite,
|
||||
resolveUser,
|
||||
trimLines,
|
||||
|
@ -66,7 +67,7 @@ export async function getServerInfoEmbed(
|
|||
|
||||
if (thisServer) {
|
||||
const owner = await resolveUser(pluginData.client, thisServer.ownerId);
|
||||
const ownerName = owner.tag;
|
||||
const ownerName = renderUsername(owner.username, owner.discriminator);
|
||||
|
||||
basicInformation.push(`Owner: **${ownerName}** (\`${thisServer.ownerId}\`)`);
|
||||
// basicInformation.push(`Voice region: **${thisServer.region}**`); Outdated, as automatic voice regions are fully live
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue