mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-08 06:03:04 -04:00
:)
This commit is contained in:
parent
17cf1689c6
commit
497997de89
1 changed files with 8 additions and 2 deletions
|
@ -61,11 +61,17 @@ module.exports = {
|
|||
try{
|
||||
application = await superagent.get(`https://discord.com/api/v9/applications/${id}/rpc`)
|
||||
application = application.body
|
||||
assets = await superagent.get(`https://discord.com/api/oauth2/applications/${id}/assets`)
|
||||
assets = assets.body
|
||||
}catch(e){
|
||||
return editOrReply(context, createEmbed("warning", context, "Invalid Application"))
|
||||
}
|
||||
|
||||
try{
|
||||
assets = await superagent.get(`https://discord.com/api/oauth2/applications/${id}/assets`)
|
||||
assets = assets.body
|
||||
}catch(e){
|
||||
// :)
|
||||
}
|
||||
|
||||
let embed = createEmbed("default", context, {
|
||||
description: `${icon("robot")} **${application.name}** ${highlight(`(${application.id})`)}\n${application.description}`,
|
||||
fields: []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue