Actually just returning the url if its host is not 'localhost'
This commit is contained in:
@ -40,8 +40,9 @@ class Client extends EventEmitter {
|
||||
|
||||
async fetchAvatar(url) {
|
||||
this.botAvatar = url;
|
||||
const img = await fetch(url);
|
||||
this.sendMessage(IconMessage.new(this, img));
|
||||
const web = await fetch(url);
|
||||
const img = await web.body.getReader().read();
|
||||
this.sendMessage(IconMessage.new(this, img.value));
|
||||
}
|
||||
|
||||
setupSwarm() {
|
||||
|
Reference in New Issue
Block a user