Fixes and add file header to list
This commit is contained in:
parent
21ff9d200c
commit
ad710de008
|
@ -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();
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue