Ask coding questions

← Back to all posts
Why do I keep getting this wall of text on console when I run my code with discord.js?
h
joshujo (1)

Client {
_events: [Object: null prototype] { message: [Function] },
_eventsCount: 1,
_maxListeners: undefined,
_timeouts: Set {},
_intervals: Set {
Timeout {
_idleTimeout: 60000,
_idlePrev: [TimersList],
_idleNext: [TimersList],
_idleStart: 857,
_onTimeout: [Function],
_timerArgs: undefined,
_repeat: 60000,
_destroyed: false,

  [Symbol(refed)]: true,
  [Symbol(asyncId)]: 2,
  [Symbol(triggerId)]: 1
}

},
_immediates: Set {},
options: {
_tokenType: 'Bot',
shardCount: 1,
messageCacheMaxSize: 200,
messageCacheLifetime: 0,
messageSweepInterval: 0,
messageEditHistoryMaxSize: -1,
fetchAllMembers: false,
disableMentions: 'none',
partials: [],
restWsBridgeTimeout: 5000,
restRequestTimeout: 15000,
retryLimit: 1,
restTimeOffset: 500,
restSweepInterval: 60,
presence: {},
ws: {
large_threshold: 50,
compress: false,
properties: [Object],
version: 6
},
http: {
version: 7,
api: 'https://discord.com/api',
cdn: 'https://cdn.discordapp.com',
invite: 'https://discord.gg',
template: 'https://discord.new'
},
shards: [ 0 ]
},
rest: RESTManager {
client: [Circular],
handlers: Collection [Map] {},
tokenPrefix: 'Bot',
versioned: true,
globalTimeout: null
},
ws: WebSocketManager {
_events: [Object: null prototype] {},
_eventsCount: 0,
_maxListeners: undefined,
gateway: null,
totalShards: 1,
shards: Collection [Map] {},
status: 3,
destroyed: false,
reconnecting: false,
sessionStartLimit: null,

[Symbol(kCapture)]: false

},
actions: ActionsManager {
client: [Circular],
MessageCreate: MessageCreateAction { client: [Circular] },
MessageDelete: MessageDeleteAction { client: [Circular] },
MessageDeleteBulk: MessageDeleteBulkAction { client: [Circular] },
MessageUpdate: MessageUpdateAction { client: [Circular] },
MessageReactionAdd: MessageReactionAdd { client: [Circular] },
MessageReactionRemove: MessageReactionRemove { client: [Circular] },
MessageReactionRemoveAll: MessageReactionRemoveAll { client: [Circular] },
MessageReactionRemoveEmoji: MessageReactionRemoveEmoji { client: [Circular] },
ChannelCreate: ChannelCreateAction { client: [Circular] },
ChannelDelete: ChannelDeleteAction { client: [Circular], deleted: Map {} },
ChannelUpdate: ChannelUpdateAction { client: [Circular] },
GuildDelete: GuildDeleteAction { client: [Circular], deleted: Map {} },
GuildUpdate: GuildUpdateAction { client: [Circular] },
InviteCreate: InviteCreateAction { client: [Circular] },
InviteDelete: InviteDeleteAction { client: [Circular] },
GuildMemberRemove: GuildMemberRemoveAction { client: [Circular] },
GuildMemberUpdate: GuildMemberUpdateAction { client: [Circular] },
GuildBanRemove: GuildBanRemove { client: [Circular] },
GuildRoleCreate: GuildRoleCreate { client: [Circular] },
GuildRoleDelete: GuildRoleDeleteAction { client: [Circular] },
GuildRoleUpdate: GuildRoleUpdateAction { client: [Circular] },
PresenceUpdate: PresenceUpdateAction { client: [Circular] },
UserUpdate: UserUpdateAction { client: [Circular] },
VoiceStateUpdate: VoiceStateUpdate { client: [Circular] },
GuildEmojiCreate: GuildEmojiCreateAction { client: [Circular] },
GuildEmojiDelete: GuildEmojiDeleteAction { client: [Circular] },
GuildEmojiUpdate: GuildEmojiUpdateAction { client: [Circular] },
GuildEmojisUpdate: GuildEmojisUpdateAction { client: [Circular] },
GuildRolesPositionUpdate: GuildRolesPositionUpdate { client: [Circular] },
GuildChannelsPositionUpdate: GuildChannelsPositionUpdate { client: [Circular] },
GuildIntegrationsUpdate: GuildIntegrationsUpdate { client: [Circular] },
WebhooksUpdate: WebhooksUpdate { client: [Circular] },
TypingStart: TypingStart { client: [Circular] }
},
voice: ClientVoiceManager {
connections: Collection [Map] {},
broadcasts: []
},
shard: null,
users: UserManager {
cacheType: [class Collection extends Collection],
cache: Collection [Map] {}
},
guilds: GuildManager {
cacheType: [class Collection extends Collection],
cache: Collection [Map] {}
},
channels: ChannelManager {
cacheType: [class Collection extends Collection],
cache: Collection [Map] {}
},
presence: ClientPresence {
userID: null,
guild: null,
status: 'online',
activities: [],
clientStatus: null
},
user: null,
readyAt: null,
commands: Collection [Map] {},

}

Answered by Coder100 (16733) [earned 5 cycles]
View Answer
Comments
hotnewtop
Coder100 (16733)

that's the return value of your final statement. So don't have it. Add this:

"";

after the final line of code.