Giter Site home page Giter Site logo

Comments (5)

theboxmage avatar theboxmage commented on September 6, 2024 1

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.

olivier-b-be avatar olivier-b-be commented on September 6, 2024

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.

theboxmage avatar theboxmage commented on September 6, 2024

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.

olivier-b-be avatar olivier-b-be commented on September 6, 2024

GhostPingUpdateHandler seems good to me, do I rename the current GhostPingHandler to GhostPingDeleteHandler?

from discord-bot.

theboxmage avatar theboxmage commented on September 6, 2024

Sure, that sounds like a reasonable change to make.

from discord-bot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.