An open API service indexing awesome lists of open source software.

https://github.com/rlxchap2/rxl-rest

new package that make the codes more easier
https://github.com/rlxchap2/rxl-rest

cli discordjs nodejs npm rxl rxl-rest

Last synced: 7 months ago
JSON representation

new package that make the codes more easier

Awesome Lists containing this project

README

          





rxl-rest





Discord server
npm version
npm downloads


## install

```sh
npm install rxl-rest
```

---

## Discord Package Section

> **You can use reply and interaction messages with `rxl-rest` package**

```js
const { Reply } = require("rxl-rest");

// Example Useage for Messages
Reply.message({ message: `Test Message`, interaction: message });

// Example Useage for Interactions
Reply.interaction({ message: `Test Message`, interaction: interaction });
```

**Console:**

```console
$ Test Message, UserID: userId, Username: username
```

## Console Section

- **you can Get more features With rxl!**

```js
const { Console, RColors } = require("rxl-rest");

// Exmple Useage of how to Return and get The Errors
Console.DebuggingErrors();

// Exmple Useage of how to Change The Console Msssage Color
Console.Color({ message: `Hello World!`, color: RColors.Green });
// RColors: ["Black", "Blue", "Cyan", "Green", "Magenta", "Red", "White", "Yellow"];

// Exmple Useage of how to make Type Errors
Console.throwTypeError("An error occurred");
```