mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
embedURL defaulting to url is causing severe length issues
This commit is contained in:
@@ -76,7 +76,7 @@ don't grant that permission.
|
|||||||
|
|
||||||
## Fun Information
|
## Fun Information
|
||||||
- 400+ Commands
|
- 400+ Commands
|
||||||
- 19,000+ lines of JavaScript
|
- 20,000+ lines of JavaScript
|
||||||
- 61,000+ lines of JSON data
|
- 61,000+ lines of JSON data
|
||||||
- 3 years of development
|
- 3 years of development
|
||||||
- 3,000+ commits
|
- 3,000+ commits
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "xiao",
|
"name": "xiao",
|
||||||
"version": "113.15.0",
|
"version": "113.15.1",
|
||||||
"description": "Your personal server companion.",
|
"description": "Your personal server companion.",
|
||||||
"main": "Xiao.js",
|
"main": "Xiao.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
+1
-1
@@ -146,7 +146,7 @@ module.exports = class Util {
|
|||||||
return today;
|
return today;
|
||||||
}
|
}
|
||||||
|
|
||||||
static embedURL(title, url, display = url) {
|
static embedURL(title, url, display) {
|
||||||
return `[${title}](${url.replace(/\)/g, '%27')}${display ? ` "${display}"` : ''})`;
|
return `[${title}](${url.replace(/\)/g, '%27')}${display ? ` "${display}"` : ''})`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user