JakyeRU/Larascord

[FEATURE] Doubt - Redirection to pages

Closed this issue · 3 comments

Is it possible to redirect the different errors to different pages?
I need to redirect users who are not in the guild to a page that will have the discord join link.

    'error_messages' => [
        'missing_code' => 'The authorization code is missing.',
        'invalid_code' => 'The authorization code is invalid.',
        'authorization_failed' => 'The authorization failed.',
        'missing_email' => 'Couldn\'t get your e-mail address.',
        'invalid_user' => 'The user ID doesn\'t match the logged-in user.',
        'database_error' => 'There was an error with the database. Please try again later.',
        'missing_guilds_scope' => 'The "guilds" scope is required.',
        'authorization_failed_guilds' => 'Couldn\'t get the servers you\'re in.',
        'not_member_guild_only' => 'You are not allowed to login.',
    ],

Hello @SnyderWillCode,

This feature doesn't exist at the moment but it is a great idea. It will be added as soon as possible.

Hi,

Thanks for the reply. Hope it gets done soon.

This feature has been added in #55. You will need to update Larascord to the latest version (as of now, v4.1.3), and republish the configuration. (This will overwrite your current configuration)

$ php artisan larascord:publish --force