ShortURL - invalid characters in search term
YueMiyuki opened this issue · 0 comments
YueMiyuki commented
Please describe the problem you are having in as much detail as possible:
The shorturl
command wont work if there is an +
symbol in the link
For example: https://www.google.com/search?client=opera&q=awa&sourceid=opera&ie=UTF-8&oe=UTF-8
To Reproduce
Steps to reproduce the behavior:
use the shorturl command
Expected behavior
A clear and concise description of what you expected to happen:
hm it should prase +
, i guess, but it wont
Screenshots
If applicable, add screenshots to help explain your problem:
By using
console.log(res)
console.log(body)
Output of console.log(res)
:
Response {
size: 0,
timeout: 0,
[Symbol(Body internals)]: {
body: PassThrough {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 4,
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: true,
[Symbol(kCapture)]: false,
[Symbol(kCallback)]: null
},
disturbed: true,
error: null
},
[Symbol(Response internals)]: {
url: 'https://is.gd/create.php?format=simple&url=lmao++1',
status: 400,
statusText: 'Bad Request',
headers: Headers { [Symbol(map)]: [Object: null prototype] },
counter: 0
}
}
Output of console.log(body)
:
Error: Please enter a valid URL to shorten
Further details:
- atlanta version: latest
- discord.js version: 12.5.3
- Node.js version: 16.8.0
- Operating system: Windows 10
Additional context
Add any other context about the problem here: Just a Screen Shot
THIS IS 100% AN API ISSUE