Refactor message prefix handling, lessen reliance on member caching, fix adding guilds in postgresql
This commit is contained in:
parent
a78df6fce7
commit
3662a2e51d
21 changed files with 87 additions and 103 deletions
|
@ -1,10 +1,10 @@
|
|||
//import wrap from "../../utils/wrap.js";
|
||||
import ImageCommand from "../../classes/imageCommand.js";
|
||||
import { textEncode } from "../../utils/misc.js";
|
||||
import { cleanMessage } from "../../utils/misc.js";
|
||||
|
||||
class SonicCommand extends ImageCommand {
|
||||
params() {
|
||||
const cleanedMessage = textEncode(this.options.text ?? this.args.join(" "));
|
||||
const cleanedMessage = cleanMessage(this.message, this.options.text ?? this.args.join(" "));
|
||||
return {
|
||||
text: cleanedMessage
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue