diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-11-22 19:01:46 -0500 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-11-22 19:01:46 -0500 |
commit | fce1fc87feb3e6dad1a956d757d856833c9ea5f6 (patch) | |
tree | 723ca41af60df525b89c6ff5b4e9574f78235734 /src/listeners/message | |
parent | 23bf2485fe17472f17bd0ee0af6b22973e317550 (diff) | |
download | tanzanite-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/message')
-rw-r--r-- | src/listeners/message/autoThread.ts | 12 | ||||
-rw-r--r-- | src/listeners/message/directMessage.ts | 13 |
2 files changed, 15 insertions, 10 deletions
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(); |