owengombas / discord.ts

🤖 Create your discord bot by using TypeScript and decorators!

Home Page:https://owencalvin.github.io/discord.ts/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bigint support

Pho3niX90 opened this issue · comments

Simple example:

@Command("find :search")
async execute(command: CommandMessage) {
    const search = command.args.search;
    console.log("test " + search);
}

find 76561198007433923 would yield test 76561198007433920

I found the same problem today, I ended up prefixing my arguments with another symbol, which is less than ideal

commented

I think this is mostly just an issue with the fact that every integer arg is automatically converted to an actual integer. Wouldn't this behavior be solved by always passing the arg on as a string and letting the consuming function decide what to do with it? In a way, related to issue #18

@iDavidB it would definitely solve the issue at hand.

fixed in #31