tipaka / roles Goto Github PK
View Code? Open in Web Editor NEWManage selfroles on your Discord server
Manage selfroles on your Discord server
uhm im trying to selfhost it but I get this error while building it
Compiling roles v0.1.0 (C:\Users\legen\OneDrive\Desktop\Roles-master)
error: `DATABASE_URL` must be set to use query macros
--> src\commands\config\add.rs:73:3
|
73 | / sqlx::query!(
74 | | r#"
75 | | INSERT INTO roles VALUES (?, ?, ?, ?)
76 | | ON CONFLICT (role_id) DO UPDATE SET
... |
84 | | p_description
85 | | )
| |___^
|
= note: this error originates in the macro `$crate::sqlx_macros::expand_query` (in Nightly builds, run with -Z macro-backtrace for more info)
error: `DATABASE_URL` must be set to use query macros
--> src\commands\config\remove.rs:26:26
|
26 | let count: Option<_> = sqlx::query!(
| __________________________^
27 | | "DELETE FROM roles WHERE guild_id = ? AND role_id = ? RETURNING *",
28 | | guild_id,
29 | | role_id
30 | | )
| |___^
|
= note: this error originates in the macro `$crate::sqlx_macros::expand_query` (in Nightly builds, run with -Z macro-backtrace for more info)
error: `DATABASE_URL` must be set to use query macros
--> src\commands\roles\select.rs:20:35
|
20 | let self_roles: Vec<RoleData> = sqlx::query_as!(
| ___________________________________^
21 | | RoleData,
22 | | "SELECT role_id, label, description FROM roles WHERE guild_id = ?",
23 | | guild_id
24 | | )
| |___^
|
= note: this error originates in the macro `$crate::sqlx_macros::expand_query` (in Nightly builds, run with -Z macro-backtrace for more info)
error: `DATABASE_URL` must be set to use query macros
--> src\commands\roles.rs:28:35
|
28 | let self_roles: Vec<RoleData> = sqlx::query_as!(
| ___________________________________^
29 | | RoleData,
30 | | "SELECT role_id, label, description FROM roles WHERE guild_id = ?",
31 | | guild_id_string,
32 | | )
| |___^
|
= note: this error originates in the macro `$crate::sqlx_macros::expand_query` (in Nightly builds, run with -Z macro-backtrace for more info)
error: could not compile `roles` due to 4 previous errors
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.