mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-16 01:53:05 -04:00
UserVoiceShow: Show in messages
This commit is contained in:
parent
467157539c
commit
49b0a38c37
7 changed files with 53 additions and 34 deletions
7
src/webpack/common/types/utils.d.ts
vendored
7
src/webpack/common/types/utils.d.ts
vendored
|
@ -16,7 +16,7 @@
|
|||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
import { Guild, GuildMember, User } from "discord-types/general";
|
||||
import { Channel, Guild, GuildMember, User } from "discord-types/general";
|
||||
import type { ReactNode } from "react";
|
||||
import { LiteralUnion } from "type-fest";
|
||||
|
||||
|
@ -173,6 +173,11 @@ export interface NavigationRouter {
|
|||
transitionToGuild(guildId: string, ...args: unknown[]): void;
|
||||
}
|
||||
|
||||
export interface ChannelRouter {
|
||||
transitionToChannel: (channelId: string) => void;
|
||||
transitionToThread: (channel: Channel) => void;
|
||||
}
|
||||
|
||||
export interface IconUtils {
|
||||
getUserAvatarURL(user: User, canAnimate?: boolean, size?: number, format?: string): string;
|
||||
getDefaultAvatarURL(id: string, discriminator?: string): string;
|
||||
|
|
|
@ -149,6 +149,10 @@ export const NavigationRouter: t.NavigationRouter = mapMangledModuleLazy("Transi
|
|||
back: filters.byCode("goBack()"),
|
||||
forward: filters.byCode("goForward()"),
|
||||
});
|
||||
export const ChannelRouter: t.ChannelRouter = mapMangledModuleLazy('"Thread must have a parent ID."', {
|
||||
transitionToChannel: filters.byCode(".preload"),
|
||||
transitionToThread: filters.byCode('"Thread must have a parent ID."')
|
||||
});
|
||||
|
||||
export let SettingsRouter: any;
|
||||
waitFor(["open", "saveAccountChanges"], m => SettingsRouter = m);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue