Enhanced Discord Support (#7005)

* Add Discord Provider Prototype

* Add Discord Logo

* Add Plugin to Plugin Manager

* fixed discord auth support and added icon

* add csv role verification

* grab discord server icon and test server id and roles

* subdomain derived from server name

* use discord server specific nickname if available

* Cleanup and comment

* move discord api types to dev deps

* cleanup of server vs default params

* remove commented out lines

* revert envv.development

* revert in vscode

* update yarn lock

* add gif support for discord server icon

* add comment with docs link

* add env section for discord

* fix errors and clarify env

* add new cannot use without

* fix suggestions
This commit is contained in:
Sebastian Pietschner
2024-06-17 00:04:25 +10:00
committed by GitHub
parent 379d2cb788
commit a9f1086422
12 changed files with 372 additions and 11 deletions

View File

@@ -625,6 +625,10 @@ export class Environment {
return value ? value : undefined;
}
protected toOptionalCommaList(value: string | undefined) {
return value ? value.split(",").map((item) => item.trim()) : undefined;
}
protected toOptionalNumber(value: string | undefined) {
return value ? parseInt(value, 10) : undefined;
}