fix GreetStickerPicker (#3561)
This commit is contained in:
parent
50e2ad776b
commit
8b36013264
1 changed files with 1 additions and 8 deletions
|
|
@ -23,13 +23,6 @@ import { Channel, Message } from "@vencord/discord-types";
|
||||||
import { findLazy } from "@webpack";
|
import { findLazy } from "@webpack";
|
||||||
import { ContextMenuApi, FluxDispatcher, Menu, MessageActions } from "@webpack/common";
|
import { ContextMenuApi, FluxDispatcher, Menu, MessageActions } from "@webpack/common";
|
||||||
|
|
||||||
interface Sticker {
|
|
||||||
id: string;
|
|
||||||
format_type: number;
|
|
||||||
description: string;
|
|
||||||
name: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
enum GreetMode {
|
enum GreetMode {
|
||||||
Greet = "Greet",
|
Greet = "Greet",
|
||||||
NormalMessage = "Message"
|
NormalMessage = "Message"
|
||||||
|
|
@ -168,7 +161,7 @@ export default definePlugin({
|
||||||
{
|
{
|
||||||
find: "#{intl::WELCOME_CTA_LABEL}",
|
find: "#{intl::WELCOME_CTA_LABEL}",
|
||||||
replacement: {
|
replacement: {
|
||||||
match: /innerClassName:\i\.welcomeCTAButton,(?<={channel:\i,message:\i}=(\i).{0,400}?)/,
|
match: /innerClassName:\i\.welcomeCTAButton,(?<={channel:\i,message:\i}=(\i).+?)/,
|
||||||
replace: "$&onContextMenu:(vcEvent)=>$self.pickSticker(vcEvent, $1),"
|
replace: "$&onContextMenu:(vcEvent)=>$self.pickSticker(vcEvent, $1),"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue