aboutsummaryrefslogtreecommitdiff
path: root/src/listeners
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-11-22 19:01:46 -0500
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-11-22 19:01:46 -0500
commitfce1fc87feb3e6dad1a956d757d856833c9ea5f6 (patch)
tree723ca41af60df525b89c6ff5b4e9574f78235734 /src/listeners
parent23bf2485fe17472f17bd0ee0af6b22973e317550 (diff)
downloadtanzanite-fce1fc87feb3e6dad1a956d757d856833c9ea5f6.tar.gz
tanzanite-fce1fc87feb3e6dad1a956d757d856833c9ea5f6.tar.bz2
tanzanite-fce1fc87feb3e6dad1a956d757d856833c9ea5f6.zip
update contributors, fix formatting, added a bunch of repo forks
Diffstat (limited to 'src/listeners')
-rw-r--r--src/listeners/commands/commandBlocked.ts4
-rw-r--r--src/listeners/guild/guildMemberRemove.ts9
-rw-r--r--src/listeners/message/autoThread.ts12
-rw-r--r--src/listeners/message/directMessage.ts13
4 files changed, 26 insertions, 12 deletions
diff --git a/src/listeners/commands/commandBlocked.ts b/src/listeners/commands/commandBlocked.ts
index 20c0f6e..7c5bc67 100644
--- a/src/listeners/commands/commandBlocked.ts
+++ b/src/listeners/commands/commandBlocked.ts
@@ -50,7 +50,9 @@ export default class CommandBlockedListener extends BushListener {
}
case reasons.DISABLED_GUILD: {
return await respond({
- content: `${util.emojis.error} The ${util.format.bold(command!.toString())} command is currently disabled in \`${message.guild?.name}\`.`,
+ content: `${util.emojis.error} The ${util.format.bold(command!.toString())} command is currently disabled in \`${
+ message.guild?.name
+ }\`.`,
ephemeral: true
});
}
diff --git a/src/listeners/guild/guildMemberRemove.ts b/src/listeners/guild/guildMemberRemove.ts
index ac0f341..393eea6 100644
--- a/src/listeners/guild/guildMemberRemove.ts
+++ b/src/listeners/guild/guildMemberRemove.ts
@@ -1,4 +1,11 @@
-import { BushGuildMember, BushListener, BushTextChannel, StickyRole, type BushClientEvents, type PartialBushGuildMember } from '#lib';
+import {
+ BushGuildMember,
+ BushListener,
+ BushTextChannel,
+ StickyRole,
+ type BushClientEvents,
+ type PartialBushGuildMember
+} from '#lib';
import { MessageEmbed, Util } from 'discord.js';
export default class GuildMemberRemoveListener extends BushListener {
diff --git a/src/listeners/message/autoThread.ts b/src/listeners/message/autoThread.ts
index f817802..c326cec 100644
--- a/src/listeners/message/autoThread.ts
+++ b/src/listeners/message/autoThread.ts
@@ -37,11 +37,13 @@ export default class autoThreadListener extends BushListener {
if (message.guild.id !== '516977525906341928') return; // mb
if (message.channel.id !== '714332750156660756') return; // neu-support-1
if (!(message.channel as BushTextChannel).permissionsFor(message.guild.me!).has('CREATE_PUBLIC_THREADS')) return;
- const thread = await message.startThread({
- name: `Support - ${message.author.username}#${message.author.discriminator}`,
- autoArchiveDuration: 60,
- reason: 'Support Thread'
- }).catch(() => null);
+ const thread = await message
+ .startThread({
+ name: `Support - ${message.author.username}#${message.author.discriminator}`,
+ autoArchiveDuration: 60,
+ reason: 'Support Thread'
+ })
+ .catch(() => null);
if (!thread) return;
const embed = new MessageEmbed()
.setTitle('NotEnoughUpdates Support')
diff --git a/src/listeners/message/directMessage.ts b/src/listeners/message/directMessage.ts
index b6cdf59..2eab341 100644
--- a/src/listeners/message/directMessage.ts
+++ b/src/listeners/message/directMessage.ts
@@ -18,15 +18,18 @@ export default class DirectMessageListener extends BushListener {
if (message.author.id != client.user!.id) {
dmLogEmbed
- .setAuthor(`From: ${message.author.username}`, `${message.author.displayAvatarURL({ dynamic: true })}`)
+ .setAuthor({
+ name: `From: ${message.author.username}`,
+ iconURL: `${message.author.displayAvatarURL({ dynamic: true })}`
+ })
.setDescription(`**DM:**\n${message}`)
.setColor(util.colors.blue);
} else {
dmLogEmbed
- .setAuthor(
- `To: ${message.channel.recipient.username}`,
- `${message.channel.recipient.displayAvatarURL({ dynamic: true })}`
- )
+ .setAuthor({
+ name: `To: ${message.channel.recipient.username}`,
+ iconURL: `${message.channel.recipient.displayAvatarURL({ dynamic: true })}`
+ })
.setDescription(`**DM:**\n${message}`)
.setColor(util.colors.red)
.setTimestamp();