From ae26be777252228f9667c6116c4fc54449c135fd Mon Sep 17 00:00:00 2001 From: Flex Date: Mon, 21 May 2018 19:21:40 -0600 Subject: [PATCH] remove compatability bs --- epapi/epapi.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/epapi/epapi.js b/epapi/epapi.js index d9c0ead..0c5259b 100644 --- a/epapi/epapi.js +++ b/epapi/epapi.js @@ -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);