Comments (5)
Now that I have a real keyboard.
I'm advocating for either a new handler or an update to the LogUpdateMessageHandler. A new GhostPingUpdateHandler (name pending) is more verbose and probably fits better in our design pattern. This would sit on the Message Update event, which gives two params when it resolves.
The other, lazier, option is to jam it into the existing LogUpdateMessageHandler.
I'd be willing to look at either option, but a new handler feels like the safer better choice.
from discord-bot.
What's the preferred way in your eyes to change this? The EventHandler only takes in one argument in the constructor which is specifically for the delete event, I'm sure the update also needs some slightly different code but considering the name currently is GhostPingHandler
it seems like it has everything to do with any form of ghost pings
from discord-bot.
Messages have a mentions object, just check to see if all the elements in the old message are the same as the new.
from discord-bot.
GhostPingUpdateHandler seems good to me, do I rename the current GhostPingHandler to GhostPingDeleteHandler?
from discord-bot.
Sure, that sounds like a reasonable change to make.
from discord-bot.
Related Issues (20)
- Necessity of detecting ghost pinging bots HOT 6
- Hiring-and-looking custom cooldown against spam posts HOT 1
- Advertisement blocker HOT 1
- Remove The Ability To React To Own Posts in #hiring-or-looking HOT 2
- Embed Field Value Exceeds Limit Causing Crash HOT 3
- Bot crashses on not existing message
- Use Discord Formatted Timestamps for Dates within /inspect
- Bot crashes on AOC command
- Upgrade Discord.js and DiscordX
- Hiring & Looking Modal HOT 1
- Integrate Piston Sandbox API HOT 2
- CodeblocksOverFileUploadsHandler.ts Rework HOT 7
- Latest messages not cached after restart
- Include helpful description in /project error message
- Tag Autocompletion with the /project command
- Moderators should be exempt from file upload restrictions in the mods channel HOT 4
- Removing self-pings doesn't trigger a ghost ping alert HOT 1
- Add /challenges command
- Eslint configuration
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 discord-bot.