mirror of
https://github.com/danbulant/discord.js
synced 2026-06-18 14:11:09 +00:00
sendFile typo
This commit is contained in:
parent
2c17eaed02
commit
4e9a11d7a9
2 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -465,7 +465,7 @@ export default class InternalClient {
|
|||
|
||||
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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue