mirror of
https://github.com/jackmerrill/hampbot.git
synced 2024-12-04 13:02:59 -08:00
im big brain
This commit is contained in:
parent
218afa32c5
commit
22afb5c770
|
@ -12,6 +12,8 @@ type MessageReactAddListener struct{}
|
|||
const STARBOARD_CHANNEL_ID = "1202408436969766982"
|
||||
const STARBOARD_THRESHOLD = 3
|
||||
|
||||
// https://discord.com/channels/936651575684915201/936651577048051738/1202417331146465311
|
||||
|
||||
func (l *MessageReactAddListener) Exec(s *discordgo.Session, e *discordgo.MessageReactionAdd) {
|
||||
if e.MessageReaction.Emoji.Name == "⭐" {
|
||||
msg, err := s.ChannelMessage(e.MessageReaction.ChannelID, e.MessageReaction.MessageID)
|
||||
|
@ -42,7 +44,7 @@ func (l *MessageReactAddListener) Exec(s *discordgo.Session, e *discordgo.Messag
|
|||
Name: msg.Author.Username,
|
||||
IconURL: msg.Author.AvatarURL(""),
|
||||
},
|
||||
Description: fmt.Sprintf("%s\n\n[Jump to message](https://discordapp.com/channels/%s/%s/%s)", msg.Content, msg.GuildID, msg.ChannelID, msg.ID),
|
||||
Description: fmt.Sprintf("%s\n\n[Jump to message](https://discordapp.com/channels/%s/%s/%s)", msg.Content, e.MessageReaction.GuildID, e.MessageReaction.ChannelID, e.MessageReaction.MessageID),
|
||||
Image: image,
|
||||
Footer: &discordgo.MessageEmbedFooter{
|
||||
Text: fmt.Sprintf("ID: %s", msg.ID),
|
||||
|
|
Loading…
Reference in New Issue
Block a user