Skip to content
This repository has been archived by the owner on Jul 15, 2024. It is now read-only.

Commit

Permalink
feat: update reply system
Browse files Browse the repository at this point in the history
  • Loading branch information
wdhdev committed Jun 29, 2023
1 parent a847d1c commit 26e6d5f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/util/send.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ module.exports = async function (message, client, Discord) {
let reply = false;

const replyEmbed = new Discord.EmbedBuilder()
.setTitle("Original Message")
.setTitle("Reference Message")

isReply:
if(reference) {
Expand Down Expand Up @@ -203,7 +203,8 @@ module.exports = async function (message, client, Discord) {
await webhook.send({
username: webhookUsername,
avatarURL: message.author.displayAvatarURL({ format: "png", dynamic: true }),
embeds: [replyEmbed, chat],
content: message.content,
embeds: [replyEmbed],
allowedMentions: { parse: [] }
}).then(msg => resolve(messages.push(`https://discord.com/channels/${guildId}/${msg.channel_id}/${msg.id}`)))
} else {
Expand Down

0 comments on commit 26e6d5f

Please sign in to comment.