mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-08 14:13:02 -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{
|
try{
|
||||||
application = await superagent.get(`https://discord.com/api/v9/applications/${id}/rpc`)
|
application = await superagent.get(`https://discord.com/api/v9/applications/${id}/rpc`)
|
||||||
application = application.body
|
application = application.body
|
||||||
assets = await superagent.get(`https://discord.com/api/oauth2/applications/${id}/assets`)
|
|
||||||
assets = assets.body
|
|
||||||
}catch(e){
|
}catch(e){
|
||||||
return editOrReply(context, createEmbed("warning", context, "Invalid Application"))
|
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, {
|
let embed = createEmbed("default", context, {
|
||||||
description: `${icon("robot")} **${application.name}** ${highlight(`(${application.id})`)}\n${application.description}`,
|
description: `${icon("robot")} **${application.name}** ${highlight(`(${application.id})`)}\n${application.description}`,
|
||||||
fields: []
|
fields: []
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue