27 lines
786 B
TypeScript
27 lines
786 B
TypeScript
// Metro module 10086 (f10087).
|
|
import "../stores/InviteSuggestionsStore";
|
|
import { fetchUserAffinitiesV2 } from "../modules/user_affinities/UserAffinitiesActionCreators";
|
|
import Dispatcher from "../Dispatcher";
|
|
export function loadInviteSuggestions({ omitUserIds, guild, channel, applicationId, inviteTargetType }) {
|
|
return fetchUserAffinitiesV2().then(() => {
|
|
let omitUserIds2 = omitUserIds;
|
|
if (omitUserIds == null) {
|
|
omitUserIds2 = new Set();
|
|
}
|
|
Dispatcher.dispatch({
|
|
type: "LOAD_INVITE_SUGGESTIONS",
|
|
omitUserIds: omitUserIds2,
|
|
guild,
|
|
channel,
|
|
applicationId,
|
|
inviteTargetType
|
|
});
|
|
});
|
|
}
|
|
export function searchInviteSuggestions(a0) {
|
|
Dispatcher.dispatch({
|
|
type: "INVITE_SUGGESTIONS_SEARCH",
|
|
query: a0
|
|
});
|
|
}
|