-
Notifications
You must be signed in to change notification settings - Fork 928
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lib/discordgo: add activity to message struct #1546
Conversation
Add a new MessageActivity type to the Message struct. This MessageActivity type represents the activity sent with a message, commonly referred to as an invite to a game session and such. This is a suggestion on the support server, found here: https://discord.com/channels/166207328570441728/356486960417734666/1125192216650977360 Signed-off-by: Luca Zeuch <l-zeuch@email.de>
any examples on how you'd use it, because it probably starts throwing |
If you mean usage in templates it's simply Summarised the OP suggested it to be used to moderate such invites, as (Though there could probably be an automod v2 trigger as well -- but
I'll take a look at that once I'm free again, thanks for the pointers. Luca |
Just, if you getMessage random message and .Activity over it, you will get Maybe adding it to amV2 as a rule to prevent such activity messages? |
I'm not sure if I'm 100% following you here — are you saying just In a handful of servers I'm in such invites are constantly sent, so I Additionally, I wouldn't say just because something is rarely used it
That is certainly a good idea, though it still would have to be added I'll look into implementing such a trigger with a decent configuration |
While it is a rare usecase, I can come up with reasons why someone might want it to be exposed in the message object. Just random ideas that people might come up with as a usecase for activity to be exposed in message. |
This doesn't tell you game details, just gives you activity type and party id. |
|
I suggest we merge this change to the library and then, whenever we feel |
Add a new MessageActivity type to the Message struct.
This MessageActivity type represents the activity sent with a message,
commonly referred to as an invite to a game session and such.
This is a suggestion on the support server, found here:
https://discord.com/channels/166207328570441728/356486960417734666/1125192216650977360
Signed-off-by: Luca Zeuch l-zeuch@email.de