Updated legacy system
This commit is contained in:
@@ -22,7 +22,7 @@ export default {
|
||||
const applicantId = embed.footer!.text.split(" ")[1]
|
||||
|
||||
const applicant = await guild.members.fetch(applicantId)
|
||||
const applicantUsername = applicant.user.username + "#" + applicant.user.discriminator
|
||||
const applicantUsername = applicant.user.username
|
||||
|
||||
await message.edit({
|
||||
components: [
|
||||
|
||||
@@ -259,7 +259,7 @@ export default {
|
||||
const channel = guild.channels.cache.get(applicationsChannel) as TextChannel
|
||||
await channel.send({
|
||||
embeds: [{
|
||||
title: user.user.username + "#" + user.user.discriminator + " - Guild Application",
|
||||
title: user.user.username + " - Guild Application",
|
||||
color: embedColor,
|
||||
thumbnail: {
|
||||
url: user.avatarURL() || ""
|
||||
|
||||
@@ -147,7 +147,7 @@ export default {
|
||||
|
||||
await appChannel.send({
|
||||
embeds: [{
|
||||
title: user.user.username + "#" + user.user.discriminator + " - Inactivity Application",
|
||||
title: user.user.username + " - Inactivity Application",
|
||||
color: embedColor,
|
||||
thumbnail: {
|
||||
url: user.avatarURL() || ""
|
||||
|
||||
@@ -19,7 +19,7 @@ export default {
|
||||
const applicantId = embed.footer!.text.split(" ")[1]
|
||||
|
||||
const applicant = await guild.members.fetch(applicantId)
|
||||
const applicantUsername = applicant.user.username + "#" + applicant.user.discriminator
|
||||
const applicantUsername = applicant.user.username
|
||||
|
||||
await applicant.send({
|
||||
embeds: [{
|
||||
|
||||
@@ -236,7 +236,7 @@ export default {
|
||||
|
||||
await channel.send({
|
||||
embeds: [{
|
||||
title: user.user.username + "#" + user.user.discriminator + " - Staff Application",
|
||||
title: user.user.username + " - Staff Application",
|
||||
color: embedColor,
|
||||
thumbnail: {
|
||||
url: user.avatarURL() || ""
|
||||
|
||||
@@ -60,12 +60,7 @@ export default {
|
||||
return
|
||||
}
|
||||
|
||||
let username = ""
|
||||
if (user.user.discriminator === "0") {
|
||||
username = user.user.username
|
||||
} else {
|
||||
username = user.user.username + "#" + user.user.discriminator
|
||||
}
|
||||
const username = user.user.username
|
||||
|
||||
await interaction.editReply({
|
||||
embeds: [{
|
||||
|
||||
Reference in New Issue
Block a user