1
0
mirror of https://github.com/fumiama/NanoBot.git synced 2026-06-05 18:50:24 +08:00

finish emoji

This commit is contained in:
源文雨
2023-10-14 00:37:43 +09:00
parent 1f3529ec88
commit 8461538905
3 changed files with 74 additions and 1 deletions

View File

@@ -149,3 +149,15 @@ func (bot *Bot) getOpenAPIofSchedule(ep string) (*Schedule, error) {
}
return &resp.Schedule, err
}
func (bot *Bot) getOpenAPIofMessageReactionUsers(ep string) (*MessageReactionUsers, error) {
resp := &struct {
CodeMessageBase
MessageReactionUsers
}{}
err := bot.GetOpenAPI(ep, "", resp)
if err != nil {
err = errors.Wrap(err, getCallerFuncName())
}
return &resp.MessageReactionUsers, err
}