utility.appinfo: add bot user info to deleted apps

This commit is contained in:
Cynthia Foxwell 2024-07-24 13:47:51 -06:00
parent ef5eb3608f
commit 2f5d474f28

View file

@ -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.";
}