mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-11 04:45:02 +00:00
Port !search and !bansearch to Knub 30
This commit is contained in:
parent
902b7693e6
commit
954c88bee2
4 changed files with 476 additions and 7 deletions
|
@ -1,5 +1,6 @@
|
|||
import {
|
||||
Attachment, ChannelInvite,
|
||||
Attachment,
|
||||
ChannelInvite,
|
||||
Client,
|
||||
Embed,
|
||||
EmbedOptions,
|
||||
|
@ -7,10 +8,12 @@ import {
|
|||
Guild,
|
||||
GuildAuditLog,
|
||||
GuildAuditLogEntry,
|
||||
GuildChannel, Invite,
|
||||
GuildChannel,
|
||||
Invite,
|
||||
Member,
|
||||
Message,
|
||||
MessageContent,
|
||||
PossiblyUncachedMessage,
|
||||
TextableChannel,
|
||||
TextChannel,
|
||||
User,
|
||||
|
@ -1212,3 +1215,7 @@ export function trimPluginDescription(str) {
|
|||
const firstLineIndentation = (lines[0].match(/^ +/g) || [""])[0].length;
|
||||
return trimIndents(emptyLinesTrimmed, firstLineIndentation);
|
||||
}
|
||||
|
||||
export function isFullMessage(msg: PossiblyUncachedMessage): msg is Message {
|
||||
return (msg as Message).createdAt != null;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue