Comments (12)
Put simply, use the following trigger to achieve it not triggering with carats:
(?:[^<]|\A)https://(?:\w+\.)?discord(?:app)?\.com/channels\/(\d+)\/(\d+)\/(\d+)(?:[^>\d]|\z)
Apart from that, there is no good way to prevent this from happening as of now, given by how the allowed mentions field in messages work (blame Discord).
from yagpdb-cc.
re: https://github.com/BlackWolfWoof/yagpdb-cc/blob/master/Misc/message%20link.gotmpl
If the original message has a ping and an embed, yag recreates the message entirely, thus pinging all the users again.
This is really only an issue with messages from the Sesh event bot. So perhaps simply ignoring messages from this user would be a solution.Alternatively, if stripping the pings is not doable, adding a function to ignore message links in carats( e.g. how
<https://url.com>
does not create an embed in discord), that could also work.I love this custom command... It should be included by default in yag. So thanks for making it. I hope you could fix this, though!
Thank you.
Hmm i could get the id of the user and replace it with the name instead i guess. I'll think about it
from yagpdb-cc.
Just update the trigger in my opinion, is also more intuitive and simulates the behaviour Discord shows with normal links.
from yagpdb-cc.
Just update the trigger in my opinion, is also more intuitive and simulates the behaviour Discord shows with normal links.
But that would defeat the purpose of using message link to quote the message and display its content across channels
from yagpdb-cc.
i'll simply just add some fix to not ping users
from yagpdb-cc.
But that would defeat the purpose of using message link to quote the message and display its content across channels
How would that defeat the purpose?
With a normal link, say, https://youtube.com
Discord will embed it, unless we enclose it in carets like so: <https://youtube.com>
.
The new and updated trigger will exactly simulate that kind of behaviour, making it more intuitive than always embedding the message.
from yagpdb-cc.
The best case scenario is add a fix to not ping users and also keeping the modified trigger. The carats do allow some extra control from users. There are times when you want to link to a message and not initiate a preview from yag.
from yagpdb-cc.
Put simply, use the following trigger to achieve it not triggering with carats:
(?:[^<]|\A)https://(?:\w+\.)?discord(?:app)?\.com/channels\/(\d+)\/(\d+)\/(\d+)(?:[^>\d]|\z)
Apart from that, there is no good way to prevent this from happening as of now, given by how the allowed mentions field in messages work (blame Discord).
This appears to not work at all -
no messages are previewed anymore. If it is only a link with no message, it simply deleted the message without giving a preview.
The bot does ignore the carats if they're used, but does not provide previews when no carats are used.
from yagpdb-cc.
Works perfectly fine on my end...
You aren't hitting custom command limits (3 per event)?
from yagpdb-cc.
P.S.: Sounds more like a code issue to me, try using the latest code if you aren't already.
from yagpdb-cc.
Ended up being something completely different - #19
from yagpdb-cc.
Note to myself: Use .Message.Mentions and getMember everyone and check if they are still on the server
from yagpdb-cc.
Related Issues (20)
- Improove the readability of all README.md's [1/13 Done] HOT 11
- dbResetKey HOT 2
- Update wall of shame HOT 1
- dbget fails when attempting to display slice of 8192 int64s HOT 2
- Database/reset: dbresetkey: Cannot give argument to non-function $dbcount HOT 3
- Antiraid script for new users during nighttime? HOT 1
- Video at link in FakeBan removed from YouTube. HOT 1
- Add setcount to the uhhh thing... readme :) HOT 5
- Add a validation method to creating snippets
- An error caused the execution of the custom command template to stop. HOT 1
- Error calling slice in Snippet System HOT 2
- message_link not sending embed when both embed and an attachement are present
- [Suggestion] Add a command to display all mod actions (for the Logging system)
- CustomCommandReplacementMain HOT 4
- image_reaction.yag on URLs not functioning HOT 2
- Snippet System/Snippet name can`t be saved if isn`t English HOT 1
- Bot not working for link (MP4) HOT 2
- Counting System is no longer functioning. HOT 6
- Snippet system image missing
- Database/Map dballmap: Error calling sdict: cannot convert data of type: string
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yagpdb-cc.