@open-discord-bots/framework 2.0.3 → 2.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/api/main.js
CHANGED
|
@@ -44,7 +44,7 @@ export class ODMain {
|
|
|
44
44
|
constructor(managers, project) {
|
|
45
45
|
this.project = project;
|
|
46
46
|
this.versions = managers.versions;
|
|
47
|
-
this.versions.add(ODVersion.fromString("opendiscord:api", "v2.0.
|
|
47
|
+
this.versions.add(ODVersion.fromString("opendiscord:api", "v2.0.4"));
|
|
48
48
|
this.versions.add(ODVersion.fromString("opendiscord:livestatus", "v2.0.0"));
|
|
49
49
|
this.debugfile = managers.debugfile;
|
|
50
50
|
this.console = managers.console;
|
|
@@ -1663,7 +1663,7 @@ export class ODAutocompleteResponderInstance extends ODBaseResponderInstance {
|
|
|
1663
1663
|
else
|
|
1664
1664
|
return raw;
|
|
1665
1665
|
});
|
|
1666
|
-
const filteredChoices = newChoices.filter((choice) => choice.name.
|
|
1666
|
+
const filteredChoices = newChoices.filter((choice) => choice.name.toLowerCase().includes(this.target.value.toLowerCase()) || choice.value.toString().toLowerCase().includes(this.target.value.toLowerCase())).slice(0, 25);
|
|
1667
1667
|
return await this.autocomplete(filteredChoices);
|
|
1668
1668
|
}
|
|
1669
1669
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-discord-bots/framework",
|
|
3
3
|
"author": "DJj123dj",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.4",
|
|
5
5
|
"description": "The core framework of the popular open-source discord bots: Open Ticket & Open Moderation.",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.js",
|