discord

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 16, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAllInstalls

func GetAllInstalls() map[models.DiscordChannel][]*DiscordInstall

func GetChannel

func GetChannel(proposed string) models.DiscordChannel

func GetSuggestedPath

func GetSuggestedPath(channel models.DiscordChannel) string

func GetVersion

func GetVersion(proposed string) string

Types

type DiscordInstall

type DiscordInstall struct {
	CorePath  string                `json:"corePath"`
	Channel   models.DiscordChannel `json:"channel"`
	Version   string                `json:"version"`
	IsFlatpak bool                  `json:"isFlatpak"`
	IsSnap    bool                  `json:"isSnap"`
}

func AddCustomPath

func AddCustomPath(proposed string) *DiscordInstall

func ResolvePath

func ResolvePath(proposed string) *DiscordInstall

func Validate

func Validate(proposed string) *DiscordInstall

Validate validates a Discord installation path on Linux. For WSL environments, it uses Windows-style validation. For native Linux, it detects Flatpak and Snap installations.

func (*DiscordInstall) InstallBD

func (discord *DiscordInstall) InstallBD() error

InstallBD installs BetterDiscord into this Discord installation

func (*DiscordInstall) IsInjected

func (discord *DiscordInstall) IsInjected() bool

TODO: consider putting this in the betterdiscord package

func (*DiscordInstall) RepairBD

func (discord *DiscordInstall) RepairBD() error

RepairBD repairs BetterDiscord for this Discord installation

func (*DiscordInstall) UninstallBD

func (discord *DiscordInstall) UninstallBD() error

UninstallBD removes BetterDiscord from this Discord installation

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL