utility.appinfo: add bot user info to deleted apps
This commit is contained in:
parent
ef5eb3608f
commit
2f5d474f28
1 changed files with 2 additions and 2 deletions
|
@ -42,7 +42,7 @@ appinfo.callback = async function (msg, line) {
|
|||
|
||||
const embed = {
|
||||
title: `${app.name}`,
|
||||
description: app.description.length > 0 ? app.description : "*No description*.",
|
||||
description: app.description.length > 0 ? app.description : "*No description.*",
|
||||
fields: [
|
||||
{
|
||||
name: "Created",
|
||||
|
@ -282,7 +282,7 @@ appinfo.callback = async function (msg, line) {
|
|||
try {
|
||||
const bot = await hf.bot.requestHandler.request("GET", APIEndpoints.USER(snowflake), true);
|
||||
if (bot) {
|
||||
return "Application has been deleted.";
|
||||
return `Application has been deleted.\nBot user: ${formatUsername(bot)}`;
|
||||
} else {
|
||||
return "ID provided does not point to a valid application.";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue