Fixed auto role rule emoji loading #1.1.0.rc5
This commit is contained in:
parent
4ea1b5b94c
commit
223946ad76
@ -107,15 +107,15 @@ export class AutoRolesRulesComponent extends ComponentWithTable implements OnIni
|
|||||||
).subscribe(data => {
|
).subscribe(data => {
|
||||||
if (data.discord.guilds) {
|
if (data.discord.guilds) {
|
||||||
this.guild = data.discord.guilds[0];
|
this.guild = data.discord.guilds[0];
|
||||||
|
this.emojis = this.guild.emojis
|
||||||
|
.map(x => {
|
||||||
|
return { label: x.name, value: x };
|
||||||
|
});
|
||||||
|
this.roles = this.guild.roles
|
||||||
|
.map(x => {
|
||||||
|
return { label: x.name, value: x };
|
||||||
|
});
|
||||||
}
|
}
|
||||||
this.emojis = this.guild.emojis
|
|
||||||
.map(x => {
|
|
||||||
return { label: x.name, value: x };
|
|
||||||
});
|
|
||||||
this.roles = this.guild.roles
|
|
||||||
.map(x => {
|
|
||||||
return { label: x.name, value: x };
|
|
||||||
});
|
|
||||||
this.spinner.hideSpinner();
|
this.spinner.hideSpinner();
|
||||||
});
|
});
|
||||||
this.loadNextPage();
|
this.loadNextPage();
|
||||||
|
Loading…
Reference in New Issue
Block a user