Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update all non-major dependencies #585

Merged
merged 3 commits into from
Sep 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,18 @@
"test": "echo \"Error: no test specified\" && exit 1"
},
"dependencies": {
"@sentry/integrations": "^7.58.1",
"@sentry/node": "^7.58.1",
"axios": "^1.4.0",
"@sentry/integrations": "^7.66.0",
"@sentry/node": "^7.66.0",
"axios": "^1.5.0",
"class-validator": "^0.14.0",
"common-tags": "^1.8.2",
"discord.js": "^14.11.0",
"discord.js": "^14.13.0",
"dotenv": "^16.3.1",
"emoji-regex": "^10.2.1",
"inversify": "^6.0.1",
"lodash": "^4.17.21",
"node-cron": "^3.0.2",
"pg": "^8.11.1",
"pg": "^8.11.3",
"pg-hstore": "^2.3.4",
"pluralize": "^8.0.0",
"typeorm": "^0.3.17",
Expand All @@ -37,18 +37,18 @@
"devDependencies": {
"@guidojw/bloxy": "^5.7.6",
"@types/common-tags": "^1.8.1",
"@types/lodash": "^4.14.195",
"@types/node": "^18.16.19",
"@types/lodash": "^4.14.197",
"@types/node": "^18.17.14",
"@types/node-cron": "^3.0.8",
"@types/pluralize": "^0.0.30",
"@types/ws": "^8.5.5",
"@typescript-eslint/eslint-plugin": "^5.62.0",
"eslint": "^8.45.0",
"eslint": "^8.48.0",
"eslint-config-standard-with-typescript": "^35.0.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-n": "^16.0.1",
"eslint-plugin-import": "^2.28.1",
"eslint-plugin-n": "^16.0.2",
"eslint-plugin-promise": "^6.1.1",
"eslint-plugin-unicorn": "^48.0.0",
"eslint-plugin-unicorn": "^48.0.1",
"reflect-metadata": "^0.1.13",
"typescript": "^5.1.6"
},
Expand Down
2 changes: 1 addition & 1 deletion src/client/events/guild-member-add.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default class GuildMemberAddEventHandler implements BaseHandler {
if (welcomeChannelsGroup !== null && welcomeChannelsGroup.isChannelGroup() &&
welcomeChannelsGroup.channels.cache.size > 0) {
const embed = new EmbedBuilder()
.setTitle(`Hey ${member.user.tag},`)
.setTitle(`Hey ${member.user.username},`)
.setDescription(`You're the **${getOrdinalNum(guild.memberCount)}** member on **${guild.name}**!`)
.setThumbnail(member.user.displayAvatarURL())
.setColor(context.primaryColor ?? applicationConfig.defaultColor)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export default class PersistentRolesCommand extends SubCommandCommand<Persistent
}

const embed = new EmbedBuilder()
.setTitle(`${member.user.tag}'s Persistent Roles`)
.setTitle(`${member.user.username}'s Persistent Roles`)
.setDescription(persistentRoles.map(role => role.toString()).toString())
.setColor(context.primaryColor ?? applicationConfig.defaultColor)
await interaction.reply({ embeds: [embed] })
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export default class BoostInfoCommand extends Command {
await member.user.fetch()
}
const embed = new EmbedBuilder()
.setTitle(`${member.user.tag} ${emoji?.toString() ?? ''}`)
.setTitle(`${member.user.username} ${emoji?.toString() ?? ''}`)
.setThumbnail(member.user.displayAvatarURL())
.setDescription(`Has been boosting this server for **${pluralize('month', months, true)}** and **${pluralize('day', days, true)}**!`)
.setFooter({ text: '* Discord Nitro months are 30 days long.' })
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export default class PollCommand extends Command {
}
const embed = new EmbedBuilder()
.setDescription(poll)
.setAuthor({ name: interaction.user.tag, iconURL: interaction.user.displayAvatarURL() })
.setAuthor({ name: interaction.user.username, iconURL: interaction.user.displayAvatarURL() })
.setColor(context?.primaryColor ?? applicationConfig.defaultColor)

const newMessage = await interaction.reply({ embeds: [embed], fetchReply: true })
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export default class SuggestCommand extends Command {
const authorUrl = `https://discord.com/users/${interaction.user.id}`
const embed = new EmbedBuilder()
.setDescription(suggestion)
.setAuthor({ name: interaction.user.tag, iconURL: interaction.user.displayAvatarURL(), url: authorUrl })
.setAuthor({ name: interaction.user.username, iconURL: interaction.user.displayAvatarURL(), url: authorUrl })
.setColor(0x000af43)
if (attachment !== null) {
if (attachment.height !== null) {
Expand Down
2 changes: 1 addition & 1 deletion src/jobs/premium-members-report.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export default class PremiumMembersReportJob implements BaseJob {
for (const { member, months } of monthlyPremiumMembers) {
embed.addFields([
{
name: `${member.user.tag} ${emoji?.toString() ?? ''}`,
name: `${member.user.username} ${emoji?.toString() ?? ''}`,
value: `Has been boosting this server for **${pluralize('month', months, true)}**!`
}
])
Expand Down
2 changes: 1 addition & 1 deletion src/loaders/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export async function init (): Promise<AroraClient> {
await client.login(process.env.DISCORD_TOKEN)
} catch (err) {
console.error(err)
client.destroy()
await client.destroy()
process.exit(1)
}

Expand Down
2 changes: 1 addition & 1 deletion src/managers/guild-ticket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export default class GuildTicketManager extends DataManager<number, Ticket, Tick
throw new Error('Invalid ticket type.')
}

const channelName = `${ticketType.name}-${author.user.tag}`
const channelName = `${ticketType.name}-${author.user.username}`
const permissionOverwrites = this.context.ticketsCategory?.permissionOverwrites.cache.toJSON() ?? []
let channel
try {
Expand Down
2 changes: 1 addition & 1 deletion src/structures/guild-context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ export default class GuildContext extends BaseStructure<GuildEntity> {
}

const embed = new EmbedBuilder()
.setAuthor({ name: author.tag, iconURL: author.displayAvatarURL() })
.setAuthor({ name: author.username, iconURL: author.displayAvatarURL() })
.setColor(this.primaryColor ?? applicationConfig.defaultColor)
.setDescription(content)
if (typeof options.color !== 'undefined') {
Expand Down
8 changes: 4 additions & 4 deletions src/structures/ticket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ export default class Ticket extends BaseStructure<TicketEntity> {
...this.moderators.cache.map(moderator => moderator.partial && moderator.fetch())
])
let moderatorsString = makeCommaSeparatedString(this.moderators.cache.map((moderator: GuildMember) => {
return `**${moderator.user.tag ?? moderator.id}**`
return `**${moderator.user.username ?? moderator.id}**`
}))
if (moderatorsString === '') {
moderatorsString = 'none'
Expand All @@ -205,7 +205,7 @@ export default class Ticket extends BaseStructure<TicketEntity> {
const embed = new EmbedBuilder()
.setColor(this.context.primaryColor ?? applicationConfig.defaultColor)
.setAuthor({
name: this.author?.user?.tag ?? this.authorId ?? 'unknown',
name: this.author?.user?.username ?? this.authorId ?? 'unknown',
iconURL: this.author?.user?.displayAvatarURL()
})
.setTitle('Ticket Rating')
Expand All @@ -230,7 +230,7 @@ export default class Ticket extends BaseStructure<TicketEntity> {
}
const { robloxId, robloxUsername } = await this.fetchAuthorData()
output += 'AUTHOR INFORMATION\n'
output += `Discord tag: ${this.author?.user?.tag ?? 'unknown'}\nDiscord ID: ${this.authorId ?? 'unknown'}\n`
output += `Discord username: ${this.author?.user?.username ?? 'unknown'}\nDiscord ID: ${this.authorId ?? 'unknown'}\n`
output += `Roblox username: ${robloxUsername ?? 'unknown'}\nRoblox ID: ${robloxId ?? 'unknown'}\n\n`

output += `Created at: ${this.channel.createdAt.toString()}\nClosed at: ${new Date().toString()}\n\n`
Expand All @@ -248,7 +248,7 @@ export default class Ticket extends BaseStructure<TicketEntity> {
}
for (const message of messages.values()) {
if (message.content !== '' || message.attachments.size > 0) {
output += `Sent by: ${message.author.tag} (${message.author.id})\n\n`
output += `Sent by: ${message.author.username} (${message.author.id})\n\n`

if (message.content !== '') {
output += ` ${message.cleanContent}\n\n`
Expand Down
Loading