diff options
| author | Zeyla Hellyer <[email protected]> | 2017-04-14 07:34:28 -0700 |
|---|---|---|
| committer | Zeyla Hellyer <[email protected]> | 2017-04-19 14:53:32 -0700 |
| commit | e7110adb1e5659b7395588381c2e56c2aa06d1fa (patch) | |
| tree | 8b9f90a5c1f3d11fd5ee2cf81b6d99caf770ccd8 /src/ext/framework/create_command.rs | |
| parent | Deprecate methods prefixed with `get_` (diff) | |
| download | serenity-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