File tree Expand file tree Collapse file tree 2 files changed +1
-10
lines changed Expand file tree Collapse file tree 2 files changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -348,14 +348,6 @@ func (m Message) Builder() MessageBuilder {
348348 return NewMessageBuilderFromMessage (m )
349349}
350350
351- func sticker2ids (s []MessageSticker ) []snowflake.ID {
352- v := make ([]snowflake.ID , len (s ))
353- for i , ms := range s {
354- v [i ] = ms .ID
355- }
356- return v
357- }
358-
359351type MessageThread struct {
360352 GuildThread
361353 Member ThreadMember `json:"member"`
Original file line number Diff line number Diff line change @@ -332,8 +332,7 @@ func (m *messageBuilderImpl) RetainAttachmentsByID(attachmentIDs ...snowflake.ID
332332}
333333
334334func (m * messageBuilderImpl ) BuildCreate () MessageCreate {
335- var attachments []AttachmentCreate
336- attachments = parseAttachments (m .Files )
335+ attachments := parseAttachments (m .Files )
337336 return MessageCreate {
338337 Nonce : m .Nonce ,
339338 Content : nillable .NonNil (m .Content ),
You can’t perform that action at this time.
0 commit comments