mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-07 13:43:03 -04:00
This commit is contained in:
parent
2db000c4ce
commit
2de0503402
1 changed files with 4 additions and 3 deletions
|
@ -10,9 +10,10 @@ import { sendMessage } from "@utils/discord";
|
|||
import definePlugin, { OptionType } from "@utils/types";
|
||||
import { Message } from "discord-types/general";
|
||||
|
||||
// Taken From Signature :)
|
||||
const settings = definePluginSettings({
|
||||
textHeader: {
|
||||
description: "What header to preface text with",
|
||||
forwardPreface: {
|
||||
description: "What should forwarded from be prefaced with",
|
||||
type: OptionType.SELECT,
|
||||
options: [
|
||||
{ label: ">", value: ">", default: true },
|
||||
|
@ -45,7 +46,7 @@ export default definePlugin({
|
|||
sendForward(channels: any, message: Message) {
|
||||
for (const c of channels) {
|
||||
sendMessage(c.id, {
|
||||
content: `${message.content}\n${settings.store.textHeader} Forwarded from <#${message.channel_id}>`
|
||||
content: `${message.content}\n${settings.store.forwardPreface} Forwarded from <#${message.channel_id}>`
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue