You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
vizality/renderer/src/modules/discord/modal/userProfile/action/open.js

12 lines
473 B

// if (!userId) return;
// // @todo Use Discord module for this after it's set up.
// getModule('getUser').getUser(userId)
// .then(() => getModule('dispatch').wait(
// () => getModule('dispatch').dispatch({ type: 'USER_PROFILE_MODAL_OPEN', userId })))
// .catch(() => vizality.api.notifications.sendToast({
// header: 'User Not Found',
// type: 'User Not Found',
// content: 'That user was unable to be located.',
// icon: 'PersonRemove'
// }));