* 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
18 lines
418 B
TypeScript
18 lines
418 B
TypeScript
import httpErrors from "http-errors";
|
|
|
|
export function DiscordGuildError(
|
|
message = "User is not a member of the required Discord server"
|
|
) {
|
|
return httpErrors(400, message, {
|
|
id: "discord_guild_error",
|
|
});
|
|
}
|
|
|
|
export function DiscordGuildRoleError(
|
|
message = "User does not have the required role from the Discord server"
|
|
) {
|
|
return httpErrors(400, message, {
|
|
id: "discord_guild_role_error",
|
|
});
|
|
}
|