mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-08 22:23:03 -04:00
add error message
This commit is contained in:
parent
52d2bbbc2d
commit
26cda46588
1 changed files with 2 additions and 0 deletions
|
@ -50,6 +50,8 @@ module.exports = {
|
|||
let search = await urbandictionary(context, args.query)
|
||||
search = search.response
|
||||
|
||||
if(search.body.status == 1) return editOrReply(context, createEmbed("warning", context, search.body.message))
|
||||
|
||||
let pages = []
|
||||
for(const res of search.body.results){
|
||||
pages.push(createUrbanPage(context, res))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue