Merge branch 'dev' into 'main'
Dev See merge request illegitimate/illegitimate-bot!301
This commit is contained in:
@@ -41,7 +41,7 @@ export default {
|
|||||||
|
|
||||||
await target.setNickname(
|
await target.setNickname(
|
||||||
target.user.username,
|
target.user.username,
|
||||||
"Reset by " + interaction.user.username + "#" + interaction.user.discriminator
|
"Reset by " + interaction.user.username
|
||||||
)
|
)
|
||||||
interaction.reply({
|
interaction.reply({
|
||||||
content: `Reset ${target.user.username}'s nickname.`,
|
content: `Reset ${target.user.username}'s nickname.`,
|
||||||
|
|||||||
@@ -57,19 +57,8 @@ export default {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
let username = ""
|
const username = user.user.username
|
||||||
if (user.user.discriminator == "0") {
|
const modName = mod.username
|
||||||
username = user.user.username
|
|
||||||
} else {
|
|
||||||
username = user.user.username + "#" + user.user.discriminator
|
|
||||||
}
|
|
||||||
|
|
||||||
let modName = ""
|
|
||||||
if (mod.discriminator == "0") {
|
|
||||||
modName = mod.username
|
|
||||||
} else {
|
|
||||||
modName = mod.username + "#" + mod.discriminator
|
|
||||||
}
|
|
||||||
|
|
||||||
await interaction.editReply({
|
await interaction.editReply({
|
||||||
embeds: [{
|
embeds: [{
|
||||||
|
|||||||
@@ -88,12 +88,7 @@ export default {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
let username = ""
|
const username = user.user.username
|
||||||
if (user.user.discriminator === "0") {
|
|
||||||
username = user.user.username
|
|
||||||
} else {
|
|
||||||
username = user.user.username + "#" + user.user.discriminator
|
|
||||||
}
|
|
||||||
|
|
||||||
await interaction.editReply({
|
await interaction.editReply({
|
||||||
embeds: [{
|
embeds: [{
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ export default {
|
|||||||
const applicantId = embed.footer!.text.split(" ")[1]
|
const applicantId = embed.footer!.text.split(" ")[1]
|
||||||
|
|
||||||
const applicant = await guild.members.fetch(applicantId)
|
const applicant = await guild.members.fetch(applicantId)
|
||||||
const applicantUsername = applicant.user.username + "#" + applicant.user.discriminator
|
const applicantUsername = applicant.user.username
|
||||||
|
|
||||||
await message.edit({
|
await message.edit({
|
||||||
components: [
|
components: [
|
||||||
|
|||||||
@@ -259,7 +259,7 @@ export default {
|
|||||||
const channel = guild.channels.cache.get(applicationsChannel) as TextChannel
|
const channel = guild.channels.cache.get(applicationsChannel) as TextChannel
|
||||||
await channel.send({
|
await channel.send({
|
||||||
embeds: [{
|
embeds: [{
|
||||||
title: user.user.username + "#" + user.user.discriminator + " - Guild Application",
|
title: user.user.username + " - Guild Application",
|
||||||
color: embedColor,
|
color: embedColor,
|
||||||
thumbnail: {
|
thumbnail: {
|
||||||
url: user.avatarURL() || ""
|
url: user.avatarURL() || ""
|
||||||
|
|||||||
@@ -147,7 +147,7 @@ export default {
|
|||||||
|
|
||||||
await appChannel.send({
|
await appChannel.send({
|
||||||
embeds: [{
|
embeds: [{
|
||||||
title: user.user.username + "#" + user.user.discriminator + " - Inactivity Application",
|
title: user.user.username + " - Inactivity Application",
|
||||||
color: embedColor,
|
color: embedColor,
|
||||||
thumbnail: {
|
thumbnail: {
|
||||||
url: user.avatarURL() || ""
|
url: user.avatarURL() || ""
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ export default {
|
|||||||
const applicantId = embed.footer!.text.split(" ")[1]
|
const applicantId = embed.footer!.text.split(" ")[1]
|
||||||
|
|
||||||
const applicant = await guild.members.fetch(applicantId)
|
const applicant = await guild.members.fetch(applicantId)
|
||||||
const applicantUsername = applicant.user.username + "#" + applicant.user.discriminator
|
const applicantUsername = applicant.user.username
|
||||||
|
|
||||||
await applicant.send({
|
await applicant.send({
|
||||||
embeds: [{
|
embeds: [{
|
||||||
|
|||||||
@@ -236,7 +236,7 @@ export default {
|
|||||||
|
|
||||||
await channel.send({
|
await channel.send({
|
||||||
embeds: [{
|
embeds: [{
|
||||||
title: user.user.username + "#" + user.user.discriminator + " - Staff Application",
|
title: user.user.username + " - Staff Application",
|
||||||
color: embedColor,
|
color: embedColor,
|
||||||
thumbnail: {
|
thumbnail: {
|
||||||
url: user.avatarURL() || ""
|
url: user.avatarURL() || ""
|
||||||
|
|||||||
@@ -60,12 +60,7 @@ export default {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
let username = ""
|
const username = user.user.username
|
||||||
if (user.user.discriminator === "0") {
|
|
||||||
username = user.user.username
|
|
||||||
} else {
|
|
||||||
username = user.user.username + "#" + user.user.discriminator
|
|
||||||
}
|
|
||||||
|
|
||||||
await interaction.editReply({
|
await interaction.editReply({
|
||||||
embeds: [{
|
embeds: [{
|
||||||
|
|||||||
@@ -17,8 +17,7 @@ export default {
|
|||||||
if (subcommand) {
|
if (subcommand) {
|
||||||
console.log(
|
console.log(
|
||||||
color(
|
color(
|
||||||
interaction.user.username + "#" +
|
interaction.user.username + " ran " +
|
||||||
interaction.user.discriminator + " ran " +
|
|
||||||
interaction.commandName + " " +
|
interaction.commandName + " " +
|
||||||
subcommand,
|
subcommand,
|
||||||
"pink"
|
"pink"
|
||||||
@@ -27,8 +26,7 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
console.log(
|
console.log(
|
||||||
color(
|
color(
|
||||||
interaction.user.username + "#" +
|
interaction.user.username + " ran " +
|
||||||
interaction.user.discriminator + " ran " +
|
|
||||||
interaction.commandName,
|
interaction.commandName,
|
||||||
"pink"
|
"pink"
|
||||||
)
|
)
|
||||||
@@ -47,9 +45,7 @@ export default {
|
|||||||
|
|
||||||
console.log(
|
console.log(
|
||||||
color(
|
color(
|
||||||
interaction.user.username + "#" +
|
interaction.user.username + " clicked " + btnId,
|
||||||
interaction.user.discriminator + " clicked " +
|
|
||||||
btnId,
|
|
||||||
"pink"
|
"pink"
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user