feat(ForwardAnywhere): Rename Setting
Some checks are pending
Test / Test (push) Waiting to run

This commit is contained in:
thororen1234 2025-04-29 19:27:58 -04:00
parent 2db000c4ce
commit 2de0503402
No known key found for this signature in database

View file

@ -10,9 +10,10 @@ import { sendMessage } from "@utils/discord";
import definePlugin, { OptionType } from "@utils/types"; import definePlugin, { OptionType } from "@utils/types";
import { Message } from "discord-types/general"; import { Message } from "discord-types/general";
// Taken From Signature :)
const settings = definePluginSettings({ const settings = definePluginSettings({
textHeader: { forwardPreface: {
description: "What header to preface text with", description: "What should forwarded from be prefaced with",
type: OptionType.SELECT, type: OptionType.SELECT,
options: [ options: [
{ label: ">", value: ">", default: true }, { label: ">", value: ">", default: true },
@ -45,7 +46,7 @@ export default definePlugin({
sendForward(channels: any, message: Message) { sendForward(channels: any, message: Message) {
for (const c of channels) { for (const c of channels) {
sendMessage(c.id, { 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}>`
}); });
} }
} }