EndPwn3Plugins/plugins/fixmentions.js

14 lines
633 B
JavaScript
Raw Normal View History

2018-05-21 17:02:05 +00:00
exports = {
manifest: {
2018-05-13 18:17:49 +00:00
author: "Cynosphere, Adryd",
name: "Mentions Fixer",
2018-05-21 17:02:05 +00:00
description: "See hidden channel mentions and remove #deleted-channel.",
replacements: [
{signature:'/t\\.type===(.+)\\.ChannelTypes\\.GUILD_TEXT&&(.+)\\.default\\.can\\((.+)\\.Permissions\\.VIEW_CHANNEL,n,t\\)/',payload:'true'},
{signature:/"#deleted-channel"/g,payload:'"<#"+e[1]+">"'},
{signature:'/"@deleted-role"/',payload:'"<@&"+e[1]+">"'},
{signature:'/guildId:null!=t\\?t\\.guild_id:null,/',payload:'guildId:null!=t.guild_id?t.guild_id:"@me",'}
]
2018-05-13 18:17:49 +00:00
},
2018-05-21 17:02:05 +00:00
2018-05-13 18:17:49 +00:00
}