order by ID descending
This commit is contained in:
parent
5ce9ca3923
commit
64e7eb4a53
@ -132,11 +132,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
|
|||||||
.token(discord_token)
|
.token(discord_token)
|
||||||
.user_data_setup(move |ctx, _bot, framework| {
|
.user_data_setup(move |ctx, _bot, framework| {
|
||||||
Box::pin(async move {
|
Box::pin(async move {
|
||||||
register_application_commands(
|
register_application_commands(ctx, framework, None)
|
||||||
ctx,
|
|
||||||
framework,
|
|
||||||
None,
|
|
||||||
)
|
|
||||||
.await
|
.await
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
||||||
|
@ -190,7 +190,7 @@ LIMIT 25
|
|||||||
SELECT name, id, public, server_id, uploader_id
|
SELECT name, id, public, server_id, uploader_id
|
||||||
FROM sounds
|
FROM sounds
|
||||||
WHERE uploader_id = ?
|
WHERE uploader_id = ?
|
||||||
ORDER BY name
|
ORDER BY id DESC
|
||||||
LIMIT ?, ?
|
LIMIT ?, ?
|
||||||
",
|
",
|
||||||
user_id.into(),
|
user_id.into(),
|
||||||
@ -207,7 +207,7 @@ SELECT name, id, public, server_id, uploader_id
|
|||||||
SELECT name, id, public, server_id, uploader_id
|
SELECT name, id, public, server_id, uploader_id
|
||||||
FROM sounds
|
FROM sounds
|
||||||
WHERE uploader_id = ?
|
WHERE uploader_id = ?
|
||||||
ORDER BY name
|
ORDER BY id DESC
|
||||||
",
|
",
|
||||||
user_id.into()
|
user_id.into()
|
||||||
)
|
)
|
||||||
@ -232,7 +232,7 @@ SELECT name, id, public, server_id, uploader_id
|
|||||||
SELECT name, id, public, server_id, uploader_id
|
SELECT name, id, public, server_id, uploader_id
|
||||||
FROM sounds
|
FROM sounds
|
||||||
WHERE server_id = ?
|
WHERE server_id = ?
|
||||||
ORDER BY name
|
ORDER BY id DESC
|
||||||
LIMIT ?, ?
|
LIMIT ?, ?
|
||||||
",
|
",
|
||||||
guild_id.into(),
|
guild_id.into(),
|
||||||
@ -250,7 +250,7 @@ SELECT name, id, public, server_id, uploader_id
|
|||||||
SELECT name, id, public, server_id, uploader_id
|
SELECT name, id, public, server_id, uploader_id
|
||||||
FROM sounds
|
FROM sounds
|
||||||
WHERE server_id = ?
|
WHERE server_id = ?
|
||||||
ORDER BY name
|
ORDER BY id DESC
|
||||||
",
|
",
|
||||||
guild_id.into()
|
guild_id.into()
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user