remove compatability bs

This commit is contained in:
Cynthia Foxwell 2018-05-21 19:21:40 -06:00
parent 9d937fe0b5
commit ae26be7772
1 changed files with 0 additions and 4 deletions

View File

@ -223,10 +223,6 @@ function evaluate(str, exportsR) {
// expose EPAPI as $api, which is what most plugins expect it to be known as
window.$api = exports;
// extension methods used in some older plugins, maintained for compatibility
String.prototype.replaceAll = function (search, replacement) { return this.split(search).join(replacement) };
Array.prototype.contains = function (s) { return this.indexOf(s) != -1 };
// derive the date of creation from a discord snowflake id
Date.fromSnowflake = (id) => new Date((id / 4194304) + 1420070400000);