1.1.0.rc5 #349
| @@ -107,15 +107,15 @@ export class AutoRolesRulesComponent extends ComponentWithTable implements OnIni | ||||
|       ).subscribe(data => { | ||||
|         if (data.discord.guilds) { | ||||
|           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.loadNextPage(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user