TDHandler
  • 👋TDHandler Guide
  • 🚀Get Started
  • Classes
    • ðŸ“ĶTDInstance
  • Methods
    • ✅init()
    • ðŸĪ–getClient
    • ðŸ—ĢïļgetChannel()
    • 📑log()
    • 📚createEmbed()
    • 🔃loadingVariables
    • 🔘getButton()
  • Organisation
    • 📄Changelog
    • 📋To-Do
  • Handling Files
    • ❗Commands
    • 🧑‍ðŸĶēContext Menus
    • 🔘Buttons
    • ⛹Events
  • 🔘Sending Buttons
Powered by GitBook
On this page
Edit on GitHub
  1. Handling Files

Events

The properties an event-file can have

File structure: Events Folder -> Event File

module.exports = {
    // The event-name
    name: "messageCreate",
    // Wherther the event fires once or always
    once: false,
    // This allows you to ignore the file in the loading process
    ignoreLoading: false,
    
    // The code to run that event
    run: message => {
        if (message.author.bot) return;
        message.reply("Whoa that's an insane event");
    }
}
PreviousButtonsNextSending Buttons

Last updated 3 years ago

⛹