mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
sendFile typo
This commit is contained in:
@@ -578,7 +578,7 @@ var InternalClient = (function () {
|
||||
|
||||
if (!name) {
|
||||
if (_file instanceof String || typeof _file === "string") {
|
||||
name = require("path").basename(attachment);
|
||||
name = require("path").basename(_file);
|
||||
} else if (_file.path) {
|
||||
// fs.createReadStream()'s have .path that give the path. Not sure about other streams though.
|
||||
name = require("path").basename(_file.path);
|
||||
|
||||
Reference in New Issue
Block a user