/[sudobot]/trunk/src/services/SnippetManager.ts
ViewVC logotype

Diff of /trunk/src/services/SnippetManager.ts

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

revision 226 by rakin, Mon Jul 29 17:29:06 2024 UTC revision 244 by rakin, Mon Jul 29 17:29:11 2024 UTC
# Line 45  export default class SnippetManager exte Line 45  export default class SnippetManager exte
45      }      }
46    
47      get(guildID: string, name: string): Snippet | null {      get(guildID: string, name: string): Snippet | null {
48            if (!this.snippets[guildID]) {
49                return null;
50            }
51            
52          for (const s of this.snippets[guildID]) {          for (const s of this.snippets[guildID]) {
53              if (s.name === name) {              if (s.name === name) {
54                  return s;                  return s;

Legend:
Removed from v.226  
changed lines
  Added in v.244

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26