mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-17 15:15:02 +00:00
Add softban command. Mod action fixes and tweaks.
This commit is contained in:
parent
e984fe89e5
commit
c5f139df24
7 changed files with 139 additions and 40 deletions
|
@ -267,3 +267,10 @@ export function getRoleMentions(str: string) {
|
|||
|
||||
return roleIds;
|
||||
}
|
||||
|
||||
/**
|
||||
* Disables link previews in the given string by wrapping links in < >
|
||||
*/
|
||||
export function disableLinkPreviews(str: string): string {
|
||||
return str.replace(/(?<!\<)(https?:\/\/\S+)/gi, "<$1>");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue