import { Bot } from './deps.js' import { channels } from './src/channels/index.js' import { guilds } from './src/guilds/index.js' import { interactions } from './src/interaction/index.js' import { invites } from './src/invites/index.js' import { members } from './src/members/index.js' import { messages } from './src/messages/index.js' import { misc } from './src/misc/index.js' import { stickers } from './src/stickers/index.js' import { webhooks } from './src/webhooks/index.js' // PLUGINS MUST TAKE A BOT ARGUMENT WHICH WILL BE MODIFIED export function enableValidationsPlugin (bot: B): B { // MARK THIS PLUGIN BEING USED bot.enabledPlugins.add('VALIDATIONS') // BEGIN OVERRIDING HELPER FUNCTIONS channels(bot) guilds(bot) interactions(bot) invites(bot) members(bot) messages(bot) misc(bot) stickers(bot) webhooks(bot) // PLUGINS MUST RETURN THE BOT return bot } // EXPORT ALL UTIL FUNCTIONS export * from './src/applicationCommandOptions.js' export * from './src/attachments.js' export * from './src/components.js' // DEFAULT MAKES IT SLIGHTLY EASIER TO USE export default enableValidationsPlugin