forked from TheCurle/Camelot
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[docs only] Message referencing docs
- Loading branch information
1 parent
15aec23
commit 838da26
Showing
13 changed files
with
1,065 additions
and
2,993 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
node_modules | ||
docs/.vuepress/ | ||
!docs/.vuepress/public | ||
!docs/.vuepress/config.js | ||
docs/.vitepress/.cache/ | ||
docs/.vitepress/cache/ | ||
docs/.vitepress/dist/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
export default { | ||
lang: 'en-US', | ||
|
||
title: 'Camelot', | ||
description: 'Documentation for the Camelot Discord bot', | ||
base: '/Camelot/', | ||
|
||
themeConfig: { | ||
logo: '/hero.png', | ||
sidebar: [ | ||
{ | ||
text: 'Setting up Camelot', | ||
link: '/get-started' | ||
}, | ||
{ | ||
text: 'Modules', | ||
link: '/modules/', | ||
collapsed: false, | ||
items: [ | ||
{ | ||
text: 'Moderation', | ||
link: '/modules/moderation' | ||
}, | ||
{ | ||
text: 'Counters', | ||
link: '/modules/counters' | ||
}, | ||
{ | ||
text: 'Message Referencing', | ||
link: '/modules/message-referencing' | ||
} | ||
] | ||
} | ||
], | ||
nav: [{ | ||
text: 'Setting up Camelot', | ||
link: '/get-started', | ||
}, { | ||
text: 'Modules', | ||
link: '/modules/', | ||
activeMatch: '/modules/' | ||
}], | ||
footer: { | ||
message: 'Released under the MIT License.', | ||
copyright: 'Copyright © 2024 NeoForged' | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
layout: home | ||
title: Camelot | ||
hero: | ||
text: Powerful Discord bot | ||
tagline: Customize your Discord experience | ||
image: | ||
src: /hero.png | ||
alt: Camelot | ||
actions: | ||
- text: Get Started running Camelot | ||
link: /get-started.html | ||
theme: brand | ||
|
||
- text: Module documentation | ||
link: /modules/ | ||
theme: alt | ||
|
||
features: | ||
- title: Modular | ||
details: Pick and choose the features you want | ||
- title: Customizable | ||
details: Configure most features to your liking | ||
- title: Powerful | ||
details: Make use of custom commands in the form of powerful JavaScript tricks | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Message Referencing Module | ||
The message referencing module (id: `message-referencing`, configuration class: `MessageReferencing`) will automatically convert | ||
Discord message links and dot-replies sent in chat to embeds. | ||
This way, a conversation that references to an older message can be linear, without needing to jump to other channels. | ||
|
||
## Reference embed | ||
![Reference embed](./message-referencing.png) | ||
The timestamp of the embed is the date at which the referenced message was sent. | ||
The footer displays the member that referenced the message, **unless** the author of the referenced message and the referencer are the same. | ||
|
||
## Triggering | ||
A message reference may be triggered in multiple ways: | ||
- replying with just `.` or `^` to a message; the reply will be deleted unless it is a ping reply | ||
- sending a message that starts with a Discord message link; your message will be deleted if it is just a message link | ||
|
||
## Leaking private channels | ||
By design, Camelot does **not** check the permissions of the member referencing a message, or the channel the reference is invoked in. | ||
This means that a message from a private channel may be accidentally _or intentionally_ leaked if a link to it is sent in a public channel. | ||
To avoid it when not desired, you may surround the link the same way you suppress embeds (`<https://discord.com/....>`). | ||
|
||
## Bot Permissions | ||
The following bot permissions are required by this module: `Send Messages`, `Read Message History`, `Manage Messages`. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Oops, something went wrong.