# Authorization Button Shortcode

This is an enclosing shortcode. It outputs an HTML link for authorization with a Discord profile. You can set shortcode attributes to alter its behavior.

**The text in the shortcode** - is the text of the button. If text is not set, the default display will switch between `Logout` and `Login with Discord` texts.

***redirect*** - attribute will allow you to choose where a user should be redirected after successful authorization. `last` - is the page where the button is located. `prev` - is one page before the last page.

***style*** - attribute will allow you to add style to the button. Use `default` for default styling of the button.

Shortcode example:

```shortcode
[argus-discord-authorization-button redirect="prev" style="default"]Time to login[/argus-discord-authorization-button]
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://mykolapetrovych.gitbook.io/argus-wordpress-plugin/version-6.0.x/wordpress-shortcodes/discord/authorization-button-shortcode.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
