Tagscript

@tagscript/plugin-discord

A tagscript plugin to work with discord.js

Description

A Plugin for TagScript 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.

npm install @tagscript/plugin-discord

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!

Buy Me A CoffeeBuy Me a Coffee at ko-fi.com

Last updated on

On this page

Edit on Github