Go to Extensions → Extensions, edit DiscordLink and open Extension Settings.
Connection#
| Setting | Default | What it does |
|---|---|---|
| Discord Client ID | From OAuth2 in the Developer Portal | |
| Discord Client Secret | From OAuth2 in the Developer Portal | |
| Discord Bot Token | For roles and DMs. Not needed for linking alone. | |
| Discord Guild (Server) ID | The server where roles are given |
Roles#
| Setting | Default |
|---|---|
| Enable Service Role Assignment | Off |
| Discord Role ID | |
| Include Free Services | On |
| Include Paid Services | On |
| Enable Node-Based Role Assignment | Off |
| Node Property Key | node |
| Node -> Discord Role Mappings |
Linking#
| Setting | Default |
|---|---|
| Success Message - Account Linked (Website) | Discord account linked successfully! |
| Send DM When Account Linked | On |
| Account Linked DM - Title | Account Linked Successfully! |
| Account Linked DM - Message |
The linked DM accepts {username}, {email}, {first_name}, {last_name}, {discord_username}, {discord_id}, {services_count}, {services} and {products}.
Notifications#
| Setting | Default |
|---|---|
| Default Notification Events | |
| Enable Admin Notifications | Off |
| Admin User | |
| Enable Ticket DM Notifications | Off |
Notification messages#
Every event has a title, a message and a button label:
| Event | Default title | Default button |
|---|---|---|
| Order Created | New Order | View Order |
| Order Updated | Order Updated | View Order |
| Invoice Created | New Invoice | View Invoice |
| Invoice Updated | Invoice Updated | View Invoice |
| Invoice Paid | Invoice Paid | View Invoice |
| Service Created | New Service | View Service |
| Service Updated | Service Updated | View Service |
| Ticket Created | New Support Ticket | Go to Ticket |
| Ticket Replied | New Reply on Ticket | Go to Ticket |
Placeholders you can use in titles and messages:
| Events | Placeholders |
|---|---|
| All | {username}, {email}, {first_name}, {last_name}, {user_id} |
| Orders | {order_id}, {total}, {status}, {currency}, {items_count}, {products}, {created_at} |
| Invoices | {invoice_id}, {invoice_number}, {total}, {status}, {currency}, {due_date}, {paid_at}, {items}, {created_at} |
| Services | {service_id}, {service_name}, {product_name}, {product_id}, {status}, {price}, {billing_cycle}, {next_due_date}, {domain} |
| Tickets | {ticket_id}, {subject}, {subject_full}, {status}, {priority}, {department}, {created_at} |
| Ticket replies | {message}, {message_full}, {message_id}, {reply_by} |
Titles support the shorter list from the description of each field.
Field labels#
The labels of the fields in a notification, such as Order ID, Invoice Number, Service ID, Ticket ID, Total, Subject and Message, can be renamed as well.