This commit is contained in:
parent
9138c39678
commit
e444007de0
@ -20,7 +20,7 @@ module.exports = {
|
|||||||
|
|
||||||
await interaction.deferReply({ ephemeral: true });
|
await interaction.deferReply({ ephemeral: true });
|
||||||
|
|
||||||
// está a ir buscar dados a sql e meter como tabela! nao mexer!
|
/* // está a ir buscar dados a sql e meter como tabela! nao mexer!
|
||||||
try {
|
try {
|
||||||
const [rows] = await conn.execute('SELECT u.id, u.discord_id, u.discord_username, u.nig, c.name AS nomedocargo FROM users u JOIN choices c ON u.cargo = c.value ORDER BY c.id DESC');
|
const [rows] = await conn.execute('SELECT u.id, u.discord_id, u.discord_username, u.nig, c.name AS nomedocargo FROM users u JOIN choices c ON u.cargo = c.value ORDER BY c.id DESC');
|
||||||
if (!rows.length) return await interaction.editReply('Nenhum membro encontrado.');
|
if (!rows.length) return await interaction.editReply('Nenhum membro encontrado.');
|
||||||
@ -67,7 +67,7 @@ module.exports = {
|
|||||||
console.error('DEV:', error);
|
console.error('DEV:', error);
|
||||||
await interaction.editReply({ content: 'dev erro!' });
|
await interaction.editReply({ content: 'dev erro!' });
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user