tagscript-plugin-discord
A tagscript plugin to work with discord.js
Description
A Plugin for TagScript (opens in a new tab) to work with discord.js related structures.
Features
- Written In Typescript
- Offers CJS, and ESM builds
- Full TypeScript & JavaScript support
Installation
tagscript-plugin-discord
depends on the following packages. Be sure to install these along with this package!
You can use the following command to install this package, or replace npm install with your package manager of choice.
pnpm i tagscript-plugin-discord tagscript discord.js
Usage
import { Interpreter, StrictVarsParser } from 'tagscript';
import { MemberTransformer } from 'tagscript-plugin-discord';
const ts = new Interpreter(new StrictVarsParser());
await ts.run('Hi {member.username}', { member: new MemberTransformer(GuildMember) });
// Hi P<z,x>
Buy me some doughnuts
If you want to support me by donating, you can do so by using any of the following methods. Thank you very much in advance!