mirror of
https://github.com/Vendicated/Vencord.git
synced 2024-09-19 22:20:34 +00:00
small code refactors and changes to text
This commit is contained in:
parent
70ae9eabf4
commit
b4366bdab6
1 changed files with 4 additions and 6 deletions
|
@ -41,7 +41,7 @@ export default definePlugin({
|
|||
}
|
||||
else {
|
||||
sendBotMessage(ctx.channel.id, {
|
||||
content: "There was an error with deleting the webhook, error code: " + res.status
|
||||
content: "There was an error with deleting the webhook, Error: " + res.status
|
||||
});
|
||||
}
|
||||
}
|
||||
|
@ -112,7 +112,7 @@ export default definePlugin({
|
|||
},
|
||||
{
|
||||
name: "username",
|
||||
description: "Send with a custom webhook username",
|
||||
description: "Send with a custom username",
|
||||
type: ApplicationCommandOptionType.STRING,
|
||||
required: false
|
||||
},
|
||||
|
@ -147,13 +147,11 @@ export default definePlugin({
|
|||
});
|
||||
}
|
||||
else {
|
||||
if (webhookUsername === "") {
|
||||
if (webhookUsername === "")
|
||||
webhookUsername = undefined;
|
||||
}
|
||||
|
||||
if (webhookProfilePic === "") {
|
||||
if (webhookProfilePic === "")
|
||||
webhookProfilePic = undefined;
|
||||
}
|
||||
|
||||
Native.executeWebhook("" + webhookUrl, {
|
||||
content: webhookMessage,
|
||||
|
|
Loading…
Reference in a new issue