Fixed issues with plugin not loading, and fixed bugs

This commit is contained in:
byron 2024-03-12 14:56:40 -04:00
parent f41c6f4762
commit ba0a9d0696

View file

@ -27,7 +27,7 @@ export default definePlugin({
}
],
execute: async (option, ctx) => {
const res = await RestAPI.delete(findOption(option, "url"));
const res = await RestAPI.delete({ url: "" + findOption(option, "url") });
try {
if (res.ok == true) {
sendBotMessage(ctx.channel.id, {
@ -77,7 +77,7 @@ export default definePlugin({
"# Webhook Creator Information: \n " +
"Creator UserID: " + response.user.id + "\n " +
"Creator Username: " + response.username + " | ( <@" + res.user.id + "> )" + "\n " +
"Creator Username: " + response.username + " | ( <@" + response.user.id + "> )" + "\n " +
"Creator Profile: [Click Me](https://img.discord.dog/" + response.user.id + ") \n"
});
});