(branch: DiscordBranch)
| 35 | } |
| 36 | |
| 37 | pub fn pascal_pkg(branch: DiscordBranch) -> &'static str { |
| 38 | match branch { |
| 39 | DiscordBranch::STABLE => "Discord", |
| 40 | DiscordBranch::PTB => "DiscordPTB", |
| 41 | DiscordBranch::CANARY => "DiscordCanary", |
| 42 | DiscordBranch::DEVELOPMENT => "DiscordDevelopment", |
| 43 | } |
| 44 | } |
| 45 | |
| 46 | pub fn install_dir(branch: DiscordBranch) -> Res<PathBuf> { |
| 47 | Ok(dvm_dir()?.join(pascal_pkg(branch))) |
no outgoing calls
no test coverage detected