Bookmark Message
This command functions similar to the reminder command, but sends a DM instantly. Alternatively, one could see it as a private pin command.
Trigger
Type: Regex
Trigger: \A(?:-\s?|<@!?204255221017214977>\s*)b(?:ook)?m(?:ark)?(?:\s+|\z)
Usage
-bookmark <message>
- Sends a nicely formatted note with the message provided in DM.
Aliases
Instead of bookmark
, you can also use bm
.
Code
{{/*
Allows you to bookmark messages.
See <https://yagpdb-cc.github.io/utilities/bookmark> for more information.
Author: Luca Z. <https://github.com/l-zeuch>
*/}}
{{/* Actual Code - Only change this when you know what you are doing */}}
{{$args := parseArgs 1 "```Bookmark <Message:Text>```\nNot enough arguments passed." (carg "string" "Message")}}
{{$note := $args.Get 0}}
{{$link := (printf "https://discord.com/channels/%d/%d/%d" .Guild.ID .Channel.ID .Message.ID)}}
{{$embed := (cembed
"title" "Bookmark"
"description" "You asked me to bookmark this for you:"
"fields" (cslice
(sdict "name" "Note" "value" (print $note) "inline" true)
(sdict "name" "Info" "value" (printf "Channel: <#%d>\nSource: [Jump!](%s)" .Channel.ID $link) "inline" true)
)
)}}
{{sendDM $embed}}
{{addReactions "📫"}}
Author
This custom command was written by @l-zeuch.