C
C#2y ago
CrosRoad95

❔ how to name an event that only goal is to send message to player?

I have a chatbox like service in my project, it sends messages to players. I would like to make a message sending via event so i call myplayer.SendMessage("hello") and it is going to trigger event, but i don't have an idea how to name it, public event Action<Player, string> MessageSend?? any ideas?
7 Replies
CrosRoad95
CrosRoad95OP2y ago
ping me if you know
Amos
Amos2y ago
Just to clarify you're asking how to name the event as in naming convention, or you're asking for us to think of a better name other than MessageSend, or I completely misunderstood and it's something else?
ero
ero2y ago
SendMessage, SendChatMessage, or have something like a MessageService class, and just call it Send
CrosRoad95
CrosRoad95OP2y ago
Just to clarify you're asking how to name the event as in naming convention
just name convention
cap5lut
cap5lut2y ago
is the event triggered before the message is sent or afterwards cuz its more a semantic question thats an important point
Amos
Amos2y ago
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server