stuff
This commit is contained in:
parent
d3bab6401c
commit
230e845f72
|
@ -26,8 +26,6 @@
|
||||||
"CategoryCollapseUtils": {"props": ["categoryCollapse", "categoryCollapseAll"]},
|
"CategoryCollapseUtils": {"props": ["categoryCollapse", "categoryCollapseAll"]},
|
||||||
"ChannelStore": {"props": ["getChannel", "getDMFromUserId"]},
|
"ChannelStore": {"props": ["getChannel", "getDMFromUserId"]},
|
||||||
"ColorUtils": {"props": ["hex2int", "hex2rgb"]},
|
"ColorUtils": {"props": ["hex2int", "hex2rgb"]},
|
||||||
"CommandApplicationUtils": {"props": ["useApplicationCommandsDiscoveryState"]},
|
|
||||||
"CommandUtils": {"props": ["queryApplicationCommands", "setActiveCommand"]},
|
|
||||||
"ContextMenuUtils": {"props": ["closeContextMenu", "openContextMenu"]},
|
"ContextMenuUtils": {"props": ["closeContextMenu", "openContextMenu"]},
|
||||||
"CopyLinkUtils": {"props": ["SUPPORTS_COPY", "copy"]},
|
"CopyLinkUtils": {"props": ["SUPPORTS_COPY", "copy"]},
|
||||||
"CurrentUserStore": {"props": ["getCurrentUser"]},
|
"CurrentUserStore": {"props": ["getCurrentUser"]},
|
||||||
|
|
|
@ -14,12 +14,12 @@ module.exports = (_ => {
|
||||||
"info": {
|
"info": {
|
||||||
"name": "ChatAliases",
|
"name": "ChatAliases",
|
||||||
"author": "DevilBro",
|
"author": "DevilBro",
|
||||||
"version": "2.2.2",
|
"version": "2.2.3",
|
||||||
"description": "Allow the user to configure their own chat-aliases which will automatically be replaced before the message is being sent"
|
"description": "Allow the user to configure their own chat-aliases which will automatically be replaced before the message is being sent"
|
||||||
},
|
},
|
||||||
"changeLog": {
|
"changeLog": {
|
||||||
"fixed": {
|
"fixed": {
|
||||||
"File aliases with replies": "Now properly adds the reply to a file alias if the rest of the message is empty"
|
"Command List": "Fixed issue where command list and autocomplete menu could be open at the same time on top of each other"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -76,15 +76,15 @@ module.exports = (_ => {
|
||||||
file: {value: false, description: "Handle the replacevalue as a filepath"}
|
file: {value: false, description: "Handle the replacevalue as a filepath"}
|
||||||
},
|
},
|
||||||
settings: {
|
settings: {
|
||||||
replaceBeforeSend: {value: true, inner: false, description: "Replace words with your aliases before a message is sent"},
|
replaceBeforeSend: {value: true, inner: false, description: "Replace words with your aliases before a message is sent"},
|
||||||
addContextMenu: {value: true, inner: false, description: "Add a contextmenu entry to faster add new aliases"},
|
addContextMenu: {value: true, inner: false, description: "Add a contextmenu entry to faster add new aliases"},
|
||||||
addAutoComplete: {value: true, inner: false, description: "Add an autocomplete-menu for non-RegExp aliases"},
|
addAutoComplete: {value: true, inner: false, description: "Add an autocomplete-menu for non-RegExp aliases"},
|
||||||
triggerNormal: {value: true, inner: true, description: "Normal Message Textarea"},
|
triggerNormal: {value: true, inner: true, description: "Normal Message Textarea"},
|
||||||
triggerEdit: {value: true, inner: true, description: "Edit Message Textarea"},
|
triggerEdit: {value: true, inner: true, description: "Edit Message Textarea"},
|
||||||
triggerUpload: {value: true, inner: true, description: "Upload Message Prompt"}
|
triggerUpload: {value: true, inner: true, description: "Upload Message Prompt"}
|
||||||
},
|
},
|
||||||
amounts: {
|
amounts: {
|
||||||
minAliasLength: {value: 2, min: 1, description: "Minimal Character Length to open Autocomplete-Menu: "}
|
minAliasLength: {value: 2, min: 1, description: "Minimal Character Length to open Autocomplete-Menu: "}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -140,6 +140,7 @@ module.exports = (_ => {
|
||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
queryResults: (channel, wordLowercase, config, rawValue) => {
|
queryResults: (channel, wordLowercase, config, rawValue) => {
|
||||||
|
if (rawValue == commandSentinel) return;
|
||||||
let currentLastWord = BDFDB.StringUtils.findMatchCaseless(wordLowercase, rawValue, true);
|
let currentLastWord = BDFDB.StringUtils.findMatchCaseless(wordLowercase, rawValue, true);
|
||||||
let matches = [];
|
let matches = [];
|
||||||
for (let word in aliases) {
|
for (let word in aliases) {
|
||||||
|
|
Loading…
Reference in New Issue