-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from Romejanic/next
Release 1.0.0
- Loading branch information
Showing
25 changed files
with
976 additions
and
743 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,23 @@ | ||
# Slasher Documentation | ||
Welcome to the official documentation page for Slasher! | ||
|
||
If you are upgrading from an older version of Slasher, see **Upgrade Guides** below. | ||
|
||
## Guides | ||
- [Getting started](./guides/getting-started.md) | ||
- [command.json format](./guides/command-json.md) | ||
- [Adding options](./guides/adding-options.md) | ||
- [Handling modals](./guides/handling-modals.md) | ||
|
||
## Upgrade Guides | ||
- [Upgrading an existing bot to Slasher](./guides/upgrading-to-slasher.md) | ||
- [Upgrading to 1.0.0 and discord.js v14](./guides/djs-14-upgrade.md) | ||
|
||
## API Reference | ||
|Type|Description| | ||
|----|-----------| | ||
|[SlasherClient](./api/SlasherClient.md)|The client for using Slasher with discord.js| | ||
|[SlasherClientOptions](./api/SlasherClientOptions.md)|The options class for creating the bot client| | ||
|[SlasherEvents](./api/SlasherEvents.md)|Enum of events fired by the Slasher client| | ||
|[CommandContext](./api/CommandContext.md)|The context object passed by the `command` event| | ||
|[Command](./api/Command.md)|Alias type for [CommandInteraction](https://discord.js.org/#/docs/main/stable/class/CommandInteraction)| | ||
|[CommandOptions](./api/CommandOptions.md)|Class for accessing the options set by the user.| |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# SlasherEvents | ||
`SlasherEvents` is a enum which provides predefined constants for the predefined events which can be fired or listened to on [SlasherClient](./SlasherClient.md) instances. It currently only contains one event, but more may be added in future when necessary. | ||
|
||
**Table of Contents** | ||
1. [Import](#import) | ||
2. [Enum Values](#enum-values) | ||
1. [.CommandCreate](#commandcreate) | ||
|
||
## Import | ||
JavaScript (pre ES6) | ||
```js | ||
const { SlasherEvents } = require("discord.js-slasher"); | ||
``` | ||
|
||
TypeScript | ||
```typescript | ||
import { SlasherEvents } from 'discord.js-slasher'; | ||
``` | ||
|
||
## Enum Values | ||
|
||
### .CommandCreate | ||
Fired when a user sends a command to the bot. This is called in tandem with the [Events.InteractionCreate](https://discord.js.org/#/docs/discord.js/main/typedef/Events) event in vanilla discord.js, but it adds the [CommandContext](./CommandContext.md) utility object. For an example on how to use this event, see [Getting Started](../guides/getting-started.md). | ||
|
||
**Value** | ||
`"command"` |
Oops, something went wrong.