mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-12 01:23:31 +01:00
Refactored static resolvers to Util (#1517)
* ready event will now throw errors properly * ws login rejection fix * moved static resolves to util
This commit is contained in:
@@ -12,7 +12,7 @@ module.exports = function sendMessage(channel, options) {
|
||||
}
|
||||
|
||||
if (content) {
|
||||
content = channel.client.resolver.resolveString(content);
|
||||
content = Util.resolveString(content);
|
||||
if (split && typeof split !== 'object') split = {};
|
||||
// Wrap everything in a code block
|
||||
if (typeof code !== 'undefined' && (typeof code !== 'boolean' || code === true)) {
|
||||
|
||||
Reference in New Issue
Block a user