mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-13 13:25:03 +00:00
More rework progress, mostly done up to ModActions
This commit is contained in:
parent
52839cc9f3
commit
57893e7f76
38 changed files with 199 additions and 241 deletions
|
@ -14,7 +14,7 @@ export const SaveMessagesToDBCmd = messageSaverCmd({
|
|||
},
|
||||
|
||||
async run({ message: msg, args, pluginData }) {
|
||||
await msg.channel.createMessage("Saving specified messages...");
|
||||
await msg.channel.send("Saving specified messages...");
|
||||
const { savedCount, failed } = await saveMessagesToDB(pluginData, args.channel, args.ids.trim().split(" "));
|
||||
|
||||
if (failed.length) {
|
||||
|
|
|
@ -13,13 +13,13 @@ export const SavePinsToDBCmd = messageSaverCmd({
|
|||
},
|
||||
|
||||
async run({ message: msg, args, pluginData }) {
|
||||
await msg.channel.createMessage(`Saving pins from <#${args.channel.id}>...`);
|
||||
await msg.channel.send(`Saving pins from <#${args.channel.id}>...`);
|
||||
|
||||
const pins = await args.channel.getPins();
|
||||
const pins = await args.channel.messages.fetchPinned();
|
||||
const { savedCount, failed } = await saveMessagesToDB(
|
||||
pluginData,
|
||||
args.channel,
|
||||
pins.map(m => m.id),
|
||||
pins.keyArray(),
|
||||
);
|
||||
|
||||
if (failed.length) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue