mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-07 21:53:04 -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 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}>`
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue