mirror of
https://github.com/veganhacktivists/arabot.git
synced 2025-05-18 21:24:14 +02:00
fix(arabot): remove adding empty string to fetchRoles
This commit is contained in:
parent
7de8b22e0e
commit
a134dbccc4
@ -151,10 +151,9 @@ export async function fetchRoles(userId: Snowflake) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
// Assign roles to role snowflakes
|
// Assign roles to role snowflakes
|
||||||
const roles = [];
|
const roles: Snowflake[] = [];
|
||||||
|
|
||||||
if (roleQuery === null) {
|
if (roleQuery === null) {
|
||||||
roles.push('');
|
|
||||||
return roles;
|
return roles;
|
||||||
}
|
}
|
||||||
if (roleQuery.vegan) {
|
if (roleQuery.vegan) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user