aboutsummaryrefslogtreecommitdiff
path: root/src/ext/framework/create_command.rs
diff options
context:
space:
mode:
authorZeyla Hellyer <[email protected]>2017-04-14 07:34:28 -0700
committerZeyla Hellyer <[email protected]>2017-04-19 14:53:32 -0700
commite7110adb1e5659b7395588381c2e56c2aa06d1fa (patch)
tree8b9f90a5c1f3d11fd5ee2cf81b6d99caf770ccd8 /src/ext/framework/create_command.rs
parentDeprecate methods prefixed with `get_` (diff)
downloadserenity-e7110adb1e5659b7395588381c2e56c2aa06d1fa.tar.xz
serenity-e7110adb1e5659b7395588381c2e56c2aa06d1fa.zip
Implement `From<&str> for ReactionType`
Implement the ability to create a ReactionType from a string slice. This is to be able to produce code like: ```rust msg.react("🍎"); ``` rather than needing to go the longer route: ```rust msg.react("🍎".to_owned()); ```
Diffstat (limited to 'src/ext/framework/create_command.rs')
0 files changed, 0 insertions, 0 deletions