mirror of
https://github.com/Mrs4s/go-cqhttp.git
synced 2025-05-05 19:43:49 +08:00
add comments
This commit is contained in:
parent
3e9920b31b
commit
bf06f50a83
@ -204,8 +204,3 @@ func convertChannelFeedInfo(f *topic.Feed) global.MSG {
|
||||
func fU64(v uint64) string {
|
||||
return strconv.FormatUint(v, 10)
|
||||
}
|
||||
|
||||
func sU64(v string) uint64 {
|
||||
r, _ := strconv.ParseUint(v, 10, 64)
|
||||
return r
|
||||
}
|
||||
|
@ -5,6 +5,7 @@ import (
|
||||
"github.com/Mrs4s/go-cqhttp/global"
|
||||
)
|
||||
|
||||
// FeedContentsToArrayMessage 将话题频道帖子内容转换为 Array Message
|
||||
func FeedContentsToArrayMessage(contents []topic.IFeedRichContentElement) []global.MSG {
|
||||
r := make([]global.MSG, 0, len(contents))
|
||||
for _, e := range contents {
|
||||
|
Loading…
x
Reference in New Issue
Block a user