Fixes and add file header to list

This commit is contained in:
Samuel Elliott 2018-04-14 21:49:16 +01:00
parent 21ff9d200c
commit ad710de008
No known key found for this signature in database
GPG Key ID: 8420C7CDE43DC4D6
2 changed files with 10 additions and 7 deletions

View File

@ -11,7 +11,7 @@
import { DiscordApi, DiscordApiModules as Modules } from 'modules';
import { List, InsufficientPermissions } from 'structs';
import { Guild } from './guild';
import { PrivateChannel } from './channel';
import { Channel } from './channel';
const users = new WeakMap();

View File

@ -1,3 +1,12 @@
/**
* BetterDiscord List
* Copyright (c) 2015-present Jiiks/JsSucks - https://github.com/Jiiks / https://github.com/JsSucks
* All rights reserved.
* https://betterdiscord.net
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
export default class List extends Array {
@ -18,10 +27,4 @@ export default class List extends Array {
});
}
from(array, map) {
for (const value of array) {
returnUsers.push(map ? map(value) : value);
}
}
}