The channel to use for calculation of channel/user mentions.
The text to calculate against.
The position of the cursor in the text.
Optional
unique: { If emojis
is set, uses emoji's uniqueName
instead of ID for autocomplete. If users
is set, uses user's tag for autocomplete. (pairs nicely with Channel.send expandMentions/expandEmojis)
Optional
emojis?: booleanOptional
users?: boolean
Calculates autocomplete for the given input text in the given channel.
Returns
An AutocompleteResult with matched items.