Skip to content

Commit

Permalink
fixed bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicuschgifthub authored Jul 27, 2024
1 parent 6567f50 commit a30b8bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Can be used for Discord to make tables
{ label: 'Count', key: 'count' }
];

const tableString = await new DiscordSimpleTable(columns)
const tableString = new DiscordSimpleTable(columns)
.setJsonArrayInputs(data) // defines the data
.setStringOffset(2) // adds an offset to the words like 2 means "Username Bucket Size"
.addVerticalBar() // adds an vertical Bar
Expand All @@ -45,7 +45,7 @@ You can also leave out the ".addVerticalBar()" and ".addIndex(1)"
```js
//...

const tableString = await new DiscordSimpleTable(columns)
const tableString = new DiscordSimpleTable(columns)
.setJsonArrayInputs(data)
.setStringOffset(2)
.build();
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "discord-simpletable",
"version": "1.0.0",
"version": "1.0.1",
"description": "A DiscordSimpleTable builder for Discord.js",
"main": "DiscordSimpleTable.js",
"publishConfig": {
Expand Down

0 comments on commit a30b8bc

Please sign in to comment.