aboutsummaryrefslogtreecommitdiff
path: root/src/listeners/bush
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-04-20 18:37:22 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-04-20 18:37:22 -0400
commitf01be2e3ce820e5737416180efa3e5852ece72c4 (patch)
treea972af929940173e4e2d9f843124a8dfb293bc90 /src/listeners/bush
parentbcb3dc5fcd21f7626d4c5a8c009dca5658a4436b (diff)
downloadtanzanite-f01be2e3ce820e5737416180efa3e5852ece72c4.tar.gz
tanzanite-f01be2e3ce820e5737416180efa3e5852ece72c4.tar.bz2
tanzanite-f01be2e3ce820e5737416180efa3e5852ece72c4.zip
fix invite link, remove store channel, update to use builder methods, fix breaking changes
Diffstat (limited to 'src/listeners/bush')
-rw-r--r--src/listeners/bush/appealListener.ts6
-rw-r--r--src/listeners/bush/supportThread.ts4
2 files changed, 5 insertions, 5 deletions
diff --git a/src/listeners/bush/appealListener.ts b/src/listeners/bush/appealListener.ts
index 1dacb19..b50b3c5 100644
--- a/src/listeners/bush/appealListener.ts
+++ b/src/listeners/bush/appealListener.ts
@@ -1,7 +1,7 @@
/* eslint-disable no-control-regex */
import { BushListener, ModLog, type BushClientEvents } from '#lib';
import assert from 'assert';
-import { Embed } from 'discord.js';
+import { EmbedBuilder } from 'discord.js';
import UserInfoCommand from '../../commands/info/userInfo.js';
import ModlogCommand from '../../commands/moderation/modlog.js';
@@ -30,7 +30,7 @@ export default class AppealListener extends BushListener {
if (!user)
return await thread.send({
embeds: [
- new Embed()
+ new EmbedBuilder()
.setTimestamp()
.setColor(util.colors.error)
.setTitle(
@@ -55,7 +55,7 @@ export default class AppealListener extends BushListener {
.slice(0, 3)
.reverse();
- const embed = new Embed()
+ const embed = new EmbedBuilder()
.setTimestamp()
.setColor(util.colors.default)
.setTitle(`${message.embeds[0].fields!.find((f) => f.name === 'What type of punishment are you appealing?')!.value} appeal`)
diff --git a/src/listeners/bush/supportThread.ts b/src/listeners/bush/supportThread.ts
index d408eef..23c1e44 100644
--- a/src/listeners/bush/supportThread.ts
+++ b/src/listeners/bush/supportThread.ts
@@ -1,7 +1,7 @@
import { BushListener, BushTextChannel, type BushClientEvents } from '#lib';
import assert from 'assert';
import { stripIndent } from 'common-tags';
-import { Embed, MessageType, PermissionFlagsBits } from 'discord.js';
+import { EmbedBuilder, MessageType, PermissionFlagsBits } from 'discord.js';
export default class SupportThreadListener extends BushListener {
public constructor() {
@@ -41,7 +41,7 @@ export default class SupportThreadListener extends BushListener {
})
.catch(() => null);
if (!thread) return;
- const embed = new Embed()
+ const embed = new EmbedBuilder()
.setTitle('NotEnoughUpdates Support')
.setDescription(
stripIndent`