Loại component (MessageComponentType) mà collector sẽ lắng nghe
Xác định collector ở trong guild (true) hay DM (false). Mặc định là boolean.
OptionalcomponentOptionaldisposeOptionalfilterOptionalidleOptionalinteractionOptionalmaxOptionalmaxOptionalmaxCallback được gọi mỗi khi collector nhận interaction.
Context chứa thông tin interaction và collector.
Collector instance gốc của discord.js.
Custom ID của component.
Interaction gốc từ Discord.
Message chứa component.
Hàm dừng collector thủ công.
ID của user đã thực hiện interaction.
Optionalvalues?: string[]Giá trị được chọn (chỉ tồn tại với Select Menu).
OptionalonCallback được gọi khi collector kết thúc.
Context chứa thông tin kết thúc collector.
Helper để chỉnh sửa message gốc.
Message chứa component collector.
Lý do collector dừng.
Ví dụ:
"time""idle""limit""user""manual"Tổng số interaction collector đã nhận.
Optionaltime
Tùy chọn cấu hình để tạo một Message Component Collector.
Remarks
Interface này mở rộng từ MessageCollectorOptionsParams, đồng thời bổ sung:
source) có thể làMessagehoặcChatInputCommandInteractiononCollectorđược gọi mỗi khi collector nhận interactiononEndđược gọi khi collector kết thúcĐây là type chuẩn để đảm bảo type-safe cho các interaction collector trong hệ thống builder của framework.
Example
See
MessageCollectorOptionsParams