Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mallusrgreatv2/djs-context
https://github.com/mallusrgreatv2/djs-context
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/mallusrgreatv2/djs-context
- Owner: mallusrgreatv2
- Created: 2024-02-24T15:58:12.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-02-24T16:26:57.000Z (10 months ago)
- Last Synced: 2024-02-24T17:23:56.824Z (10 months ago)
- Language: JavaScript
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DJS Context
This package helps you create a combination of a chat input command interaction and a message. You can use properties available to both of them.
```ts
const { Context } = require("@mallusrgreat/djs-context");
// or
import { Context } from "@mallusrgreat/djs-context";client.on("messageCreate", (msg) => {
const context = new Context(msg);
handlePingCommand(context);
});
```