fix PetPet & RoleColorEverywhere, (#3893)
This commit is contained in:
parent
658ff5b216
commit
98a38642c7
4 changed files with 6 additions and 7 deletions
|
|
@ -27,7 +27,7 @@ export interface WebUploadItem extends BaseUploadItem {
|
||||||
export type CloudUploadItem = ReactNativeUploadItem | WebUploadItem;
|
export type CloudUploadItem = ReactNativeUploadItem | WebUploadItem;
|
||||||
|
|
||||||
export class CloudUpload extends EventEmitter {
|
export class CloudUpload extends EventEmitter {
|
||||||
constructor(item: CloudUploadItem, channelId: string, showLargeMessageDialog?: boolean, reactNativeFileIndex?: number);
|
constructor(item: CloudUploadItem, channelId: string, reactNativeFileIndex?: number);
|
||||||
|
|
||||||
channelId: string;
|
channelId: string;
|
||||||
classification: string;
|
classification: string;
|
||||||
|
|
@ -56,7 +56,6 @@ export class CloudUpload extends EventEmitter {
|
||||||
preCompressionSize: number;
|
preCompressionSize: number;
|
||||||
responseUrl: string;
|
responseUrl: string;
|
||||||
sensitive: boolean;
|
sensitive: boolean;
|
||||||
showLargeMessageDialog: boolean;
|
|
||||||
spoiler: boolean;
|
spoiler: boolean;
|
||||||
startTime: number;
|
startTime: number;
|
||||||
status: "NOT_STARTED" | "STARTED" | "UPLOADING" | "ERROR" | "COMPLETED" | "CANCELLED" | "REMOVED_FROM_MSG_DRAFT";
|
status: "NOT_STARTED" | "STARTED" | "UPLOADING" | "ERROR" | "COMPLETED" | "CANCELLED" | "REMOVED_FROM_MSG_DRAFT";
|
||||||
|
|
|
||||||
|
|
@ -84,9 +84,9 @@ export default definePlugin({
|
||||||
|
|
||||||
// Add support for the nonce parameter to Discord's shitcode
|
// Add support for the nonce parameter to Discord's shitcode
|
||||||
{
|
{
|
||||||
find: ".REQUEST_GUILD_MEMBERS",
|
find: ".REQUEST_GUILD_MEMBERS,",
|
||||||
replacement: {
|
replacement: {
|
||||||
match: /\.send\(8,{/,
|
match: /\.send\(\i\.\i\.REQUEST_GUILD_MEMBERS,{/,
|
||||||
replace: "$&nonce:arguments[1].nonce,"
|
replace: "$&nonce:arguments[1].nonce,"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -105,8 +105,8 @@ export default definePlugin({
|
||||||
find: 'tutorialId:"whos-online',
|
find: 'tutorialId:"whos-online',
|
||||||
replacement: [
|
replacement: [
|
||||||
{
|
{
|
||||||
match: /null,\i," — ",\i\]/,
|
match: /(?<=\.roleIcon.{0,15}:null,).{0,150}— ",\i\]\}\)\]/,
|
||||||
replace: "null,$self.RoleGroupColor(arguments[0])]"
|
replace: "$self.RoleGroupColor(arguments[0])]"
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
predicate: () => settings.store.memberList
|
predicate: () => settings.store.memberList
|
||||||
|
|
|
||||||
|
|
@ -138,7 +138,7 @@ export const UserUtils = {
|
||||||
|
|
||||||
export const UploadManager = findByPropsLazy("clearAll", "addFile");
|
export const UploadManager = findByPropsLazy("clearAll", "addFile");
|
||||||
export const UploadHandler = {
|
export const UploadHandler = {
|
||||||
promptToUpload: findByCodeLazy("=!0,showLargeMessageDialog:") as (files: File[], channel: t.Channel, draftType: Number) => void
|
promptToUpload: findByCodeLazy("Unexpected mismatch between files and file metadata") as (files: File[], channel: t.Channel, draftType: Number) => void
|
||||||
};
|
};
|
||||||
|
|
||||||
export const ApplicationAssetUtils = mapMangledModuleLazy("getAssetImage: size must === [", {
|
export const ApplicationAssetUtils = mapMangledModuleLazy("getAssetImage: size must === [", {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue