owengombas / discord.ts

🤖 Create your discord bot by using TypeScript and decorators!
https://owencalvin.github.io/discord.ts/
324 stars 40 forks source link

Fixes and New Features #62

Closed samarmeena closed 3 years ago

samarmeena commented 3 years ago

For those who use this PR for their projects

Thank you all for your support and help.


Status: Fully Functional (check todo, if anything yet to add in lib)

New features

Todo

Doc Todo

Test Required

Issues with this pull

Issue Fixed

Pull Accepted

todo[bot] commented 3 years ago

add example for slash, argof message does not apply on interactions

https://github.com/OwenCalvin/discord.ts/blob/79b85cc574482922064fada0a51e290eb783749f/docs/src/decorators/guard.md#L2-L7


This comment was generated by todo based on a todo comment in 79b85cc574482922064fada0a51e290eb783749f in #62. cc @oceanroleplay.
c43721 commented 3 years ago

How likely will this PR be merged into Slash branch? I'm quite eager to use this package as a whole, and this PR would help manage my buttons alongside all the other command stuffs.

samarmeena commented 3 years ago

How likely will this PR be merged into Slash branch? I'm quite eager to use this package as a whole, and this PR would help manage my buttons alongside all the other command stuffs.

Hello, you can clone this PR and use it manually until it is merged.

samarmeena commented 3 years ago

@Command decorator let you create commands with any prefix, define prefix resolver in Client object

@Discord()
export abstract class commandTest {
  @Command("mycommand")
  async cmd(
    @CommandOption("a") a: string, //
    @CommandOption("b") b: number,
    message: Message
  ) {
    console.log("I am cmd");
    message.reply("Hi, I am working");
  }
}
zLupa commented 3 years ago

will this be reviewed and merged? I really need the @Option fix.

samarmeena commented 3 years ago

Stale