mirror of
https://github.com/Vendicated/Vencord.git
synced 2024-09-19 22:20:34 +00:00
literal string for webhookinfo, also inside of an embed, better way to format the icon instead of clicking now.
This commit is contained in:
parent
f2b22bc349
commit
0fd7a59d8a
1 changed files with 17 additions and 13 deletions
|
@ -73,18 +73,22 @@ export default definePlugin({
|
|||
.then(response => {
|
||||
WMLogger.info(JSON.stringify(response));
|
||||
sendBotMessage(ctx.channel.id, {
|
||||
content: "# Webhook Information: \n" +
|
||||
"Webhook Username: " + response.name + "\n " +
|
||||
"Webhook ID: " + response.id + "\n " +
|
||||
"Webhook Token: " + response.token + "\n " +
|
||||
"Channel ID: " + response.channel_id + "\n " +
|
||||
"Server ID: " + response.guild_id + "\n " +
|
||||
"Webhook Profile Picture: " + "[Click Me](https://cdn.discordapp.com/avatars/" + response.id + "/" + response.avatar + ".png)" + "\n " +
|
||||
"Webhook Type: " + response.type + "\n \n" +
|
||||
embeds: [
|
||||
{
|
||||
author: {
|
||||
icon_url: `https://cdn.discordapp.com/avatars/${response.id}/${response.avatar}.png`,
|
||||
},
|
||||
|
||||
"# Webhook Creator Information: \n " +
|
||||
"Creator UserID: " + response.user.id + "\n " +
|
||||
"Creator Username: " + "<@" + response.user.id + ">" + "\n "
|
||||
content: `# Webhook Information: \n
|
||||
Webhook Username: ${response.name}
|
||||
Webhook ID: ${response.id}
|
||||
Webhook Token: ${response.token}
|
||||
Webhook Type: ${response.type}
|
||||
Channel ID: ${response.channel_id}
|
||||
Server ID: ${response.guild_id}
|
||||
|
||||
"Creator Profile: <@${response.user.id}>`
|
||||
}]
|
||||
});
|
||||
});
|
||||
}
|
||||
|
@ -114,7 +118,7 @@ export default definePlugin({
|
|||
},
|
||||
{
|
||||
name: "rawjson",
|
||||
description: "Send as a raw JSON",
|
||||
description: "Send message as raw JSON",
|
||||
type: ApplicationCommandOptionType.BOOLEAN,
|
||||
required: false
|
||||
}
|
||||
|
@ -147,4 +151,4 @@ export default definePlugin({
|
|||
}
|
||||
}
|
||||
]
|
||||
});
|
||||
});;;;;
|
||||
|
|
Loading…
Reference in a new issue