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:
parent
4d01f0b34a
commit
2da5e1aa75
5 changed files with 53 additions and 13 deletions
|
@ -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});
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue