Event is emitted when a message is sent in a channel.
event: "MESSAGE_CREATE"
Message: Message
A new Message instance for the created message
Channel: TextChannel | DirectMessageChannel
The channel instance describing the channel in which the message was created
Author: User
A User instance for the person sending the message
Guild?: Guild
The Guild instance in which the TextChannel instance resides
GuildMember?: GuildMember
The GuildMember instance for the author
This event is emitted when a new message is sent in a channel that the bot user is a member of.
Nonce
of the sent message to make sure that the message has been sent successfully.
It should also be noted the author parameter will always be a User instance, however can hold limited information when the created message originates from a webhook as stated in Discord's API documentation;
webhook_id
on the message object.
The Guild
and GUILD_MEMBER
parameters will only be populated if discords
MESSAGE_CREATE
event was sent from a TextChannel within a valid Guild instance and will otherwise be
undefined
. If the message was sent outwith a guild the Channel
parameter will be a
DirectMessageInstance.
| Connecting to Discord |
|


#each
a = [0,1,2,3,4]
a.each do |number|
puts number
end
=>0
=>1
=>2
=>3
=>4
#each is an Enumerable method that can be used on arrays and hashes. In the example above, #each is being called on the array 'a'. The #each method goes through each element of the array, and runs the code that follows, for each element. Alternatively, each can be called with a code block, using curly brackets '{}', instead if do...end:
a = [0,1,2,3,4]
a.each {|number| puts number}
=>0
=>1
=>2
=>3
=>4


Please enter below the path to the directory on your local file system
that contains the tests you want to run. This will clear any tests
already loaded.
NOTE: you can also use the --tests-path PATH command line
argument to automatically load the tests at the given PATH.
An error occurred
An unrecoverable error happened, the tests are stopped. You can still
view or save the results for the tests that were run, but the test run will
be flagged as an error.
You should press the Reset button or load tests to continue running
tests.
Error detail:
Screenshot Failure
A screenshot was taken for running the current Reftest but the
application failed to locate the frame containing the test.
Server Error message:
Try to make the test frame visible and then try again:
The tests have completed. You can now view a report of the results or
upload them to the test server (feature not yet available).
If you close this message box, you can view more details about tests
and results or load and run new tests.