> For the complete documentation index, see [llms.txt](https://cjays-organization.gitbook.io/nexora.ts/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cjays-organization.gitbook.io/nexora.ts/classes/index.md).

# Overview

Reference for Nexora’s most important classes — each page has a short description and copy-paste examples.

Functional helpers (`command()`, `event()`, `plugin()`) stay fully supported. Classes are the preferred style for larger bots and clearer IDE navigation.

## Framework

| Class                                                            | Package                    | Role                                     |
| ---------------------------------------------------------------- | -------------------------- | ---------------------------------------- |
| [Nexora](/nexora.ts/framework/nexora.md)                         | `@nexora.ts/core`          | Bot lifecycle, Discord client, discovery |
| [SlashCommand](/nexora.ts/framework/slash-command.md)            | `@nexora.ts/core`          | Class-based slash commands               |
| [SlashCommandGroup](/nexora.ts/framework/slash-command-group.md) | `@nexora.ts/core`          | Subcommand groups + context menus        |
| [EventHandler](/nexora.ts/framework/event-handler.md)            | `@nexora.ts/core`          | Class-based Discord events               |
| [ButtonHandler](/nexora.ts/framework/button-handler.md)          | `@nexora.ts/core`          | Button / select / modal handlers         |
| [Service](/nexora.ts/framework/service.md)                       | `@nexora.ts/core`          | Injectable services with logger          |
| [NexoraPlugin](/nexora.ts/framework/nexora-plugin.md)            | `@nexora.ts/plugin-system` | Plugin lifecycle (`onLoad` / `onUnload`) |
| [Logger](/nexora.ts/framework/logger.md)                         | `@nexora.ts/logger`        | Pretty console, command traces, files    |

## Message UI

| Class                                                               | Package           | Role                                     |
| ------------------------------------------------------------------- | ----------------- | ---------------------------------------- |
| [EmbedBuilder](/nexora.ts/message-ui/embed-builder.md)              | `@nexora.ts/core` | Embeds + success/error/warn/info presets |
| [ButtonBuilder](/nexora.ts/message-ui/button-builder.md)            | `@nexora.ts/core` | Buttons + `ActionRowBuilder`             |
| [ModalBuilder](/nexora.ts/message-ui/modal-builder.md)              | `@nexora.ts/core` | Modals + text inputs                     |
| [LayoutContainerBuilder](/nexora.ts/message-ui/layout-container.md) | `@nexora.ts/core` | Components V2 layouts (`container()`)    |
| [Paginator](/nexora.ts/message-ui/paginator.md)                     | `@nexora.ts/core` | Pages, ConfirmDialog, ChoicePrompt       |

## Quick pick

```ts
import {
  Nexora,
  SlashCommand,
  EmbedBuilder,
  container,
  text,
} from '@nexora.ts/core';
import type { CommandContext } from '@nexora.ts/core';

export default class PingCommand extends SlashCommand {
  name = 'ping';
  description = 'Latency check';

  async execute(ctx: CommandContext) {
    await ctx.reply(EmbedBuilder.success('Pong', 'Bot is online.'));
    // or Components V2:
    // await ctx.componentsV2(container().add(text('# Pong')));
  }
}
```

See also: [Commands](/nexora.ts/commands-and-interactions/commands.md) · [Events](/nexora.ts/commands-and-interactions/events.md) · [Builders](/nexora.ts/builders-and-ui/builders.md) · [Components V2](/nexora.ts/builders-and-ui/components-v2.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://cjays-organization.gitbook.io/nexora.ts/classes/index.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
