-
Notifications
You must be signed in to change notification settings - Fork 3
Client
Bilal2453 edited this page Nov 6, 2021
·
2 revisions
A patched version of the Discordia Client class.
See Discordia Client for full documentations. Only Patched methods and getters are documented here.
Parameter | Type | Optional |
---|---|---|
msg | Message | ✔ |
type | string/number | ✔ |
id | Custom-ID-Resolvable | ✔ |
timeout | number | ✔ |
predicate | function | ✔ |
Equivalent to client:waitFor("interactionCreate", timeout, predicate)
except that it pre-provides a predicate for ease of use.
If msg
is provided, only interactionCreate event that reference this Message will pass.
type
is the type of the component interaction see componentType enumeration for acceptable values,
if none specified any will match.
id
is the component custom_id, if none provided any id will match,
timeout
behave similar to waitFor's, so do predicate
.
Returns: boolean, ...