Readded bot scope (misread article); removed references to discriminators

pull/91/head
pineafan 3 years ago
parent 72659cc74b
commit 3c1c68007f
Signed by: Pinea
GPG Key ID: E5E1C2D43B0E4AB3

@ -23,7 +23,7 @@ const callback = async (interaction: CommandInteraction): Promise<void> => {
.setURL(
`https://discord.com/api/oauth2/authorize?client_id=${
client.user!.id
}&permissions=407900777662&scope=applications.commands`
}&permissions=407900777662&scope=bot%20applications.commands`
)
])
],

@ -165,7 +165,7 @@ const callback = async (interaction: CommandInteraction): Promise<void> => {
const gaveUser = await client.users.fetch(hasPremium[1]);
premiumGuild = `**This server has premium! It was ${
hasPremium[2] === 3 && hasPremium[3]
? `automatically applied by ${gaveUser.username}#${gaveUser.discriminator}`
? `automatically applied by ${gaveUser.username}`
: `given by <@${hasPremium[1]}>`
}**\n\n`;
}

@ -192,7 +192,6 @@ interface TranscriptComponent {
interface TranscriptAuthor {
username: string;
discriminator: number;
nickname?: string;
id: string;
iconURL?: string;
@ -390,7 +389,6 @@ export class Transcript {
type: type,
for: {
username: member!.user.username,
discriminator: parseInt(member!.user.discriminator),
id: member!.user.id,
topRole: {
color: member!.roles.highest.color
@ -404,7 +402,6 @@ export class Transcript {
createdTimestamp: Date.now(),
createdBy: {
username: interaction.user.username,
discriminator: parseInt(interaction.user.discriminator),
id: interaction.user.id,
topRole: {
color: interactionMember?.roles.highest.color ?? 0x000000
@ -420,7 +417,6 @@ export class Transcript {
id: message.id,
author: {
username: message.author.username,
discriminator: parseInt(message.author.discriminator),
id: message.author.id,
topRole: {
color: message.member ? message.member.roles.highest.color : 0x000000
@ -499,7 +495,7 @@ export class Transcript {
out += `> [Crosspost From] ${message.referencedMessage[0]} in ${message.referencedMessage[1]} in ${message.referencedMessage[2]}\n`;
} else out += `> [Reply To] ${message.referencedMessage}\n`;
}
out += `${message.author.nickname ?? message.author.username}#${message.author.discriminator} (${
out += `${message.author.nickname ?? message.author.username} (${
message.author.id
}) (${message.id})`;
out += ` [${new Date(message.createdTimestamp).toISOString()}]`;

Loading…
Cancel
Save