Feature/vba 52 (#175)

* Add say command (#174)

Co-authored-by: Ethan Lane <ethan@vylpes.com>
Reviewed-on: https://gitea.vylpes.xyz/RabbitLabs/vylbot-app/pulls/174

* Add repo and funding link to about message (#176)

Reviewed-on: https://gitea.vylpes.xyz/RabbitLabs/vylbot-app/pulls/176

* Add other subreddits to bunny command

* Fix changes requested
This commit is contained in:
Vylpes 2022-09-05 18:07:32 +01:00 committed by GitHub
parent 4d01f0b34a
commit 2da5e1aa75
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 53 additions and 13 deletions

View file

@ -1,4 +1,4 @@
import { MessageEmbed, Permissions, TextChannel } from "discord.js";
import { MessageEmbed, MessageOptions, Permissions, TextChannel } from "discord.js";
import { ICommandContext } from "../../contracts/ICommandContext";
export default class PublicEmbed extends MessageEmbed {
@ -20,7 +20,7 @@ export default class PublicEmbed extends MessageEmbed {
}
// Send methods
public async SendToCurrentChannel() {
public async SendToCurrentChannel(options?: MessageOptions) {
const channel = this.context.message.channel as TextChannel;
const botMember = await this.context.message.guild?.members.fetch({ user: this.context.message.client.user! });
@ -30,6 +30,6 @@ export default class PublicEmbed extends MessageEmbed {
if (!permissions.has(Permissions.FLAGS.SEND_MESSAGES)) return;
this.context.message.channel.send({ embeds: [ this ]});
this.context.message.channel.send({ embeds: [ this ], ...options});
}
}