/[sudobot]/trunk/commands/mvsnippet.js
ViewVC logotype

Diff of /trunk/commands/mvsnippet.js

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 5 by rakin, Mon Jul 29 17:28:11 2024 UTC revision 29 by rakin, Mon Jul 29 17:28:17 2024 UTC
# Line 14  module.exports = { Line 14  module.exports = {
14              return;              return;
15          }          }
16                    
17          let snippet = cm.snippetManager.find(cm.args[0]);          let snippet = cm.snippetManager.find(msg.guild.id, cm.args[0]);
18                    
19          if (snippet) {          if (snippet) {
20              cm.snippetManager.delete(snippet.name);              cm.snippetManager.delete(msg.guild.id, snippet.name);
21              cm.snippetManager.create(cm.args[1], snippet.content);              cm.snippetManager.create(msg.guild.id, cm.args[1], snippet.content);
22    
23              await msg.reply({              await msg.reply({
24                  embeds: [                  embeds: [

Legend:
Removed from v.5  
changed lines
  Added in v.29

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26