/[sudobot]/trunk/src/utils/parseInput.ts
ViewVC logotype

Diff of /trunk/src/utils/parseInput.ts

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

revision 238 by rakin, Mon Jul 29 17:29:09 2024 UTC revision 371 by rakin, Mon Jul 29 17:29:50 2024 UTC
# Line 43  export async function parseChannel(guild Line 43  export async function parseChannel(guild
43      let channel: GuildChannel | null = null;          let channel: GuildChannel | null = null;    
44    
45      try {      try {
46          channel = await guild.channels.fetch(input.trim().substring(2, input.trim().length - 1));          channel = <GuildChannel | null> await guild.channels.fetch(input.trim().substring(2, input.trim().length - 1));
47      }      }
48      catch (e) {      catch (e) {
49          return null;          return null;

Legend:
Removed from v.238  
changed lines
  Added in v.371

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26