diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-01-25 23:47:40 -0500 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-01-25 23:47:40 -0500 |
commit | 840cca672d681c36f980a06fb79a4e2c01bd69ac (patch) | |
tree | 82c40a7fe3e1a2bc6367fed6e3d26b6c7dceb256 /src/commands/dev/test.ts | |
parent | 6ca99336a416389dd2b0b8c4c6a7b2ef87bc9fef (diff) | |
download | tanzanite-840cca672d681c36f980a06fb79a4e2c01bd69ac.tar.gz tanzanite-840cca672d681c36f980a06fb79a4e2c01bd69ac.tar.bz2 tanzanite-840cca672d681c36f980a06fb79a4e2c01bd69ac.zip |
I love breaking changes!!!!
Diffstat (limited to 'src/commands/dev/test.ts')
-rw-r--r-- | src/commands/dev/test.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/commands/dev/test.ts b/src/commands/dev/test.ts index 63c1112..b53b2d8 100644 --- a/src/commands/dev/test.ts +++ b/src/commands/dev/test.ts @@ -4,7 +4,7 @@ import { ActionRowComponent, ButtonComponent, ButtonStyle, - MessageEmbed, + Embed, type ApplicationCommand, type Collection } from 'discord.js'; @@ -60,8 +60,8 @@ export default class TestCommand extends BushCommand { ); return await message.util.reply({ content: 'buttons', components: [ButtonRow] }); } else if (['embed', 'button embed'].includes(args?.feature?.toLowerCase())) { - const embed = new MessageEmbed() - .addField('Field Name', 'Field Content') + const embed = new Embed() + .addField({ name: 'Field Name', value: 'Field Content' }) .setAuthor({ name: 'Author', iconURL: 'https://www.w3schools.com/w3css/img_snowtops.jpg', url: 'https://google.com/' }) .setColor(message.member?.displayColor ?? util.colors.default) .setDescription('Description') @@ -93,7 +93,7 @@ export default class TestCommand extends BushCommand { } else if (['paginate'].includes(args?.feature?.toLowerCase())) { const embeds = []; for (let i = 1; i <= 5; i++) { - embeds.push(new MessageEmbed().setDescription(i.toString())); + embeds.push(new Embed().setDescription(i.toString())); } return await ButtonPaginator.send(message, embeds); } else if (['lots of embeds'].includes(args?.feature?.toLowerCase())) { |