Skip to content

Commit c4e94ba

Browse files
committed
fix code
1 parent aeddc54 commit c4e94ba

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

discord/message.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff 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-
359351
type MessageThread struct {
360352
GuildThread
361353
Member ThreadMember `json:"member"`

discord/message_builder.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,8 +332,7 @@ func (m *messageBuilderImpl) RetainAttachmentsByID(attachmentIDs ...snowflake.ID
332332
}
333333

334334
func (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),

0 commit comments

Comments
 (0)