Developer
Interfaces
Getting Started

Getting Started

Let's start creating our interfaces!

Interfaces in TypeScript define the structure of an object. They specify the types and the properties that an object should have. For a Discord bot, interfaces can help ensure that the objects we use, such as configurations, commands, and clients, adhere to the expected structure, which can prevent errors and improve code quality.

Project Structure

  • Necessary Interfaces

    For this project we will use only:

    • ExtendedClient interface
    • Command interface
    🚫
    You can setup more interfaces as of your need.

    Now we can go ahead!