discord-tsx-factory v0.3.2
About
Write Discord.js component in tsx.
discord-tsx-factory
is compatible with discord.js
version 14.10.0 - 14.11.0
. (See peerDependencies
)
import { createElement, Fragment, Client } from "discord-tsx-factory";
import * as Discord from "discord.js";
const client = new Client(...);
// Go to documents/EXAMPLES.md (visit GitHub) to check out example usages.
Installation
Using npm
$ npm install --save discord.js@14.11.0 discord-tsx-factory
Using yarn
$ yarn add discord.js@14.11.0 discord-tsx-factory
You need to modify your tsconfig.json to use discord-tsx-factory:
{
"compilerOptions": {
...
"jsx": "react",
"jsxFactory": "createElement",
"jsxFragmentFactory": "Fragment",
...
},
...
}
Example usage
Go to EXAMPLES.md.
Listening and Handling interactions
Go to HANDLING_INTERACTIONS.md.
Command
discord-tsx-commands
is now available on npmjs!
import * as Discord from "discord.js";
import { createElement, Fragment } from "discord-tsx-factory";
import "discord-tsx-commands";
Check out discord-tsx-commands on GitHub for more information.
Special Thanks
License
MIT License
Copyright (c) 2022 이승훈
5 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago